]> The Tcpdump Group git mirrors - libpcap/blobdiff - testprogs/can_set_rfmon_test.c
Add -Wformat-nonliteral and fix most warnings that come up
[libpcap] / testprogs / can_set_rfmon_test.c
index c6fe103735c96d2ee1018a6af79126d1a7d98c1f..f6188ba1399e334897619b8264ca95eb55677bf1 100644 (file)
@@ -39,7 +39,7 @@ The Regents of the University of California.  All rights reserved.\n";
 static const char *program_name;
 
 /* Forwards */
-static void PCAP_NORETURN error(const char *, ...);
+static void PCAP_NORETURN error(PCAP_FORMAT_STRING(const char *), ...) PCAP_PRINTFLIKE(1,2);
 
 int
 main(int argc, char **argv)