diff options
author | Nikolai Kondrashov <spbnick@gmail.com> | 2011-12-28 10:36:35 +0200 |
---|---|---|
committer | Nikolai Kondrashov <spbnick@gmail.com> | 2011-12-28 10:38:09 +0200 |
commit | 597588b159356ddd2e76df68413c9c926c29049d (patch) | |
tree | 85ef29991073d2ce93e027c7f5abc9a84a7fccaa | |
parent | e3d1a07aa13cc6cfa04c685029f1f3c60fe15e5f (diff) | |
download | usbhid-dump-597588b159356ddd2e76df68413c9c926c29049d.tar.gz |
Fix program_invocation_name shadowing warning
Fix "declaration of 'program_invocation_name' shadows a global declaration"
warning on Cygwin by renaming "usage" function argument to simply "name".
-rw-r--r-- | src/usbhid-dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usbhid-dump.c b/src/usbhid-dump.c index 7ceb683..56a2956 100644 --- a/src/usbhid-dump.c +++ b/src/usbhid-dump.c @@ -792,7 +792,7 @@ PACKAGE_STRING "\n" static bool -usage(FILE *stream, const char *program_invocation_name) +usage(FILE *stream, const char *name) { return fprintf( @@ -830,7 +830,7 @@ usage(FILE *stream, const char *program_invocation_name) "Signals:\n" " USR1/USR2 pause/resume the stream dump output\n" "\n", - program_invocation_name) >= 0; + name) >= 0; } |