avoid possible use of uninitialized intf_addr in nmrp_do()
[oweals/nmrpflash.git] / nmrpd.h
diff --git a/nmrpd.h b/nmrpd.h
index d050707b6ae88d4161787e5354922f760d649dcb..d65c8116003c339e8f614e835deb3dc5bb191248 100644 (file)
--- a/nmrpd.h
+++ b/nmrpd.h
@@ -26,6 +26,7 @@
 #if defined(_WIN32) || defined(_WIN64)
 #      define NMRPFLASH_WINDOWS
 #elif defined(__APPLE__) && defined(__MACH__)
+#      define NMRPFLASH_UNIX
 #      define NMRPFLASH_OSX
 #      define NMRPFLASH_BSD
 #elif defined (__unix__)
 #define MIN(a, b) ((a) < (b) ? (a) : (b))
 #endif
 
+#ifndef MAX
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
 #ifndef PACKED
 #define PACKED __attribute__((packed))
 #endif
@@ -91,6 +96,7 @@ struct nmrpd_args {
        const char *intf;
        const char *mac;
        enum nmrp_op op;
+       bool blind;
        uint16_t port;
        const char *region;
 };