Module Name: src
Committed By: kre
Date: Wed Oct 5 03:06:24 UTC 2016
Modified Files:
src/sbin/gpt: show.c
Log Message:
Avoiding having parameter name shadow its own function's name.
Strictly this shouldnt be (and hasn't been for almost a year) a problem,
but there are compilers that warn about locals shadowing globals (which
this is/was) and it is easy to avoid, so ... No functinal difference.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sbin/gpt/show.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/show.c
diff -u src/sbin/gpt/show.c:1.38 src/sbin/gpt/show.c:1.39
--- src/sbin/gpt/show.c:1.38 Thu Jun 9 17:43:36 2016
+++ src/sbin/gpt/show.c Wed Oct 5 03:06:24 2016
@@ -33,7 +33,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: show.c,v 1.38 2016/06/09 17:43:36 kre Exp $");
+__RCSID("$NetBSD: show.c,v 1.39 2016/10/05 03:06:24 kre Exp $");
#endif
#include <sys/bootblock.h>
@@ -158,7 +158,7 @@ print_part_type(int map_type, int flags,
}
static int
-show(gpt_t gpt, int show)
+show(gpt_t gpt, int xshow)
{
map_t m;
@@ -178,7 +178,7 @@ show(gpt_t gpt, int show)
printf(" ");
putchar(' ');
putchar(' ');
- print_part_type(m->map_type, show, m->map_data, m->map_start);
+ print_part_type(m->map_type, xshow, m->map_data, m->map_start);
putchar('\n');
m = m->map_next;
}