From af0c1f5f89750f16054c988937e180764c411c20 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 9 Aug 2013 11:43:52 +0200 Subject: 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 --- promisc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'promisc.h') diff --git a/promisc.h b/promisc.h index b290b92..3dc275f 100644 --- a/promisc.h +++ b/promisc.h @@ -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 */ -- cgit v1.2.3-54-g00ecf