]> git.meshlink.io Git - catta/blobdiff - src/internal.h
change some int declarations that should have said CattaIfIndex
[catta] / src / internal.h
index 789f3634a209e1e9601e267c3082a1b45e4175d7..019006e71cad816ab674c020735950c65d81e41a 100644 (file)
@@ -52,6 +52,7 @@ typedef struct CattaEntry CattaEntry;
 #define closesocket close
 #define winsock_init()
 #define winsock_exit()
+#define errnostrsocket() strerror(errno)
 #endif
 
 typedef struct CattaLegacyUnicastReflectSlot CattaLegacyUnicastReflectSlot;
@@ -62,7 +63,7 @@ struct CattaLegacyUnicastReflectSlot {
     uint16_t id, original_id;
     CattaAddress address;
     uint16_t port;
-    int iface;
+    CattaIfIndex iface;
     struct timeval elapse_time;
     CattaTimeEvent *time_event;
 };