Fix unused warning
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 11 Sep 2018 14:31:00 +0000 (16:31 +0200)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Tue, 11 Sep 2018 14:31:00 +0000 (16:31 +0200)
ethsock.c

index 088ec9c08d1c5c0800d4ebbcedac220001b4d7ee..76a044c2affa9276bb2f6487c2d8fbf990d4b4ca 100644 (file)
--- a/ethsock.c
+++ b/ethsock.c
@@ -99,6 +99,7 @@ static int x_pcap_findalldevs(pcap_if_t **devs)
        return 0;
 }
 
+#ifndef NMRPFLASH_LINUX
 static int systemf(const char *fmt, ...)
 {
        char cmd[1024];
@@ -116,6 +117,7 @@ static int systemf(const char *fmt, ...)
 
        return ret;
 }
+#endif
 
 #ifndef NMRPFLASH_WINDOWS
 static inline bool sockaddr_get_hwaddr(struct sockaddr *sa, uint8_t *hwaddr)