]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix function name
authorRoy Marples <roy@marples.name>
Wed, 6 Apr 2016 20:53:26 +0000 (20:53 +0000)
committerRoy Marples <roy@marples.name>
Wed, 6 Apr 2016 20:53:26 +0000 (20:53 +0000)
if.c

diff --git a/if.c b/if.c
index 1acff97417d9b5bf7d8c85200d7f9cb0183b4d9f..a3b1e02d550620487442647a6b5beb07a0e09cb7 100644 (file)
--- a/if.c
+++ b/if.c
@@ -176,7 +176,7 @@ if_hasconf(struct dhcpcd_ctx *ctx, const char *ifname)
        return 0;
 }
 
-static void if_learnaddrs1(struct dhcpcd_ctx *ctx, struct if_head *ifs,
+static void if_learnaddrs(struct dhcpcd_ctx *ctx, struct if_head *ifs,
     struct ifaddrs *ifaddrs)
 {
        struct ifaddrs *ifa;
@@ -540,7 +540,7 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv)
                TAILQ_INSERT_TAIL(ifs, ifp, next);
        }
 
-       if_learnaddrs1(ctx, ifs, ifaddrs);
+       if_learnaddrs(ctx, ifs, ifaddrs);
        freeifaddrs(ifaddrs);
 
        return ifs;