From 514a4ae9fa544db72e3ea2fc6dcd3a9530b24127 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 31 Jul 2013 09:19:27 +0200 Subject: dev: Constify `ifname' parameter to device_up_and_running() The parameter `ifname' to device_up_and_running() is never modified inside the function, thus mark it as const. Signed-off-by: Tobias Klauser --- dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev.c') 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; -- cgit v1.2.3-54-g00ecf