]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile warning on BSD
authorRoy Marples <roy@marples.name>
Mon, 9 Sep 2013 23:09:29 +0000 (23:09 +0000)
committerRoy Marples <roy@marples.name>
Mon, 9 Sep 2013 23:09:29 +0000 (23:09 +0000)
dhcpcd.c

index 8665b9074c8a2c954796930e7066f9f1c579e408..085510ee6f068c51cc256c6b6d2e487d1a52714e 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -393,13 +393,14 @@ configure_interface(struct interface *ifp, int argc, char **argv)
 }
 
 int
-handle_rename(unsigned int index, const char *ifname)
+handle_rename(unsigned int ifindex, const char *ifname)
 {
        struct interface *ifp;
 
        TAILQ_FOREACH(ifp, ifaces, next) {
-               if (ifp->index == index && strcmp(ifp->name, ifname)) {
-                       syslog(LOG_INFO, "%s: rename to %s", ifp->name, ifname);
+               if (ifp->index == ifindex && strcmp(ifp->name, ifname)) {
+                       syslog(LOG_INFO, "%s: renamed to %s",
+                           ifp->name, ifname);
                        strlcpy(ifp->name, ifname, sizeof(ifp->name));
                        return 1;
                }