misc-utils/lslocks.c:157:49: warning: declaration of 'pid' shadows a global declaration [-Wshadow] misc-utils/lslocks.c:80:14: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- misc-utils/lslocks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index 094224d..56855f4 100644 --- a/misc-utils/lslocks.c +++ b/misc-utils/lslocks.c @@ -104,12 +104,12 @@ static void disable_columns_truncate(void) /* * Return a PID's command name */ -static char *get_cmdname(pid_t pid) +static char *get_cmdname(pid_t qpid) { FILE *fp; char path[PATH_MAX], *ret = NULL; - sprintf(path, "/proc/%d/comm", pid); + sprintf(path, "/proc/%d/comm", qpid); if (!(fp = fopen(path, "r"))) return NULL; -- 1.7.11.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html