diff options
-rw-r--r-- | promisc.c | 4 | ||||
-rw-r--r-- | promisc.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -5,7 +5,7 @@ #include "promisc.h" #include "dev.h" -short enter_promiscuous_mode(char *ifname) +short enter_promiscuous_mode(const char *ifname) { short ifflags; @@ -18,7 +18,7 @@ short enter_promiscuous_mode(char *ifname) return ifflags; } -void leave_promiscuous_mode(char *ifname, short oldflags) +void leave_promiscuous_mode(const char *ifname, short oldflags) { if (!strncmp("any", ifname, strlen("any"))) return; @@ -1,7 +1,7 @@ #ifndef PROMISC_H #define PROMISC_H -extern short enter_promiscuous_mode(char *ifname); -extern void leave_promiscuous_mode(char *ifname, short oldflags); +extern short enter_promiscuous_mode(const char *ifname); +extern void leave_promiscuous_mode(const char *ifname, short oldflags); #endif /* PROMISC_H */ |