]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch a warning.
authorGuy Harris <[email protected]>
Sat, 15 Sep 2018 20:54:28 +0000 (13:54 -0700)
committerGuy Harris <[email protected]>
Sat, 15 Sep 2018 20:54:28 +0000 (13:54 -0700)
Mark argc and argv unused if we don't have remote-capture support, as
the arguments are only used to specify the remote server.

testprogs/findalldevstest.c

index e535e25462fb7fd234149ad3397ddb2a622cfaf9..eaefb79d4101db3231f5b870a374d545ae220cbc 100644 (file)
@@ -94,7 +94,11 @@ getpass(const char *prompt)
 }
 #endif
 
 }
 #endif
 
+#ifdef ENABLE_REMOTE
 int main(int argc, char **argv)
 int main(int argc, char **argv)
+#else
+int main(int argc _U_, char **argv _U_)
+#endif
 {
   pcap_if_t *alldevs;
   pcap_if_t *d;
 {
   pcap_if_t *alldevs;
   pcap_if_t *d;