[patch] trivial warning fix for ndis_events
Pawel Worach
pawel.worach at gmail.com
Sun Jun 21 21:34:39 UTC 2009
Hi,
Here is a trival patch to fix the format string to match the data
argument in ndis_events.
$ clang -O2 -pipe -c ndis_events.c
ndis_events.c:268:57: warning: more data arguments than '%' conversions
[-Wformat-extra-args]
fprintf(stderr, "Usage: ndis_events [-a] [-d] [-v]\n", progname);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
Index: usr.sbin/wpa/ndis_events/ndis_events.c
===================================================================
--- usr.sbin/wpa/ndis_events/ndis_events.c (revision 193093)
+++ usr.sbin/wpa/ndis_events/ndis_events.c (working copy)
@@ -265,7 +265,7 @@
usage(progname)
char *progname;
{
- fprintf(stderr, "Usage: ndis_events [-a] [-d] [-v]\n", progname);
+ fprintf(stderr, "Usage: %s [-a] [-d] [-v]\n", progname);
exit(1);
}
--
Pawel
More information about the freebsd-current
mailing list