summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev.c2
-rw-r--r--dev.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/dev.c b/dev.c
index 3fafbde..5bbac71 100644
--- a/dev.c
+++ b/dev.c
@@ -167,7 +167,7 @@ void device_set_flags(const char *ifname, const short flags)
close(sock);
}
-int device_up_and_running(char *ifname)
+int device_up_and_running(const char *ifname)
{
if (!ifname)
return -EINVAL;
diff --git a/dev.h b/dev.h
index 87751c6..7bd1fb3 100644
--- a/dev.h
+++ b/dev.h
@@ -10,7 +10,7 @@ extern int device_ifindex(const char *ifname);
extern int device_type(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);
-extern int device_up_and_running(char *ifname);
+extern int device_up_and_running(const char *ifname);
extern u32 device_bitrate(const char *ifname);
#endif /* DEV_H */