diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-08-09 11:43:52 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-08-09 11:44:59 +0200 |
commit | af0c1f5f89750f16054c988937e180764c411c20 (patch) | |
tree | 9b168ffbf33239499af8e67bfa2ad8b1f4840aa0 /promisc.h | |
parent | cd69ac14e478483f38d8ff9a6671e5f65ef5473a (diff) |
promisc: Constify `ifname' parameters to {enter,leave}_promiscuous_mode()
The parameter `ifname' to {enter,leave}_promiscuous_mode() is never
modified inside the functions, thus mark it as const.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'promisc.h')
-rw-r--r-- | promisc.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |