From 670118ad7f6b555bc956c1e63f8c337fb4c8ec30 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 9 Sep 2013 23:09:29 +0000 Subject: [PATCH] Fix compile warning on BSD --- dhcpcd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dhcpcd.c b/dhcpcd.c index 8665b907..085510ee 100644 --- 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; }