]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix a compile warning
authorRoy Marples <roy@marples.name>
Sat, 8 Feb 2014 10:41:29 +0000 (10:41 +0000)
committerRoy Marples <roy@marples.name>
Sat, 8 Feb 2014 10:41:29 +0000 (10:41 +0000)
dhcp-common.c

index 0ab77531aca42f7e9110c830d21c5c787a4cd516..7379be2ebf497cb7f99a71a9cf93ceb26bbe9965 100644 (file)
@@ -67,18 +67,18 @@ vivso_find(uint16_t iana_en, const void *arg)
 }
 
 size_t
-dhcp_vendor(char *str, size_t strlen)
+dhcp_vendor(char *str, size_t str_len)
 {
        struct utsname utn;
        char *p;
 
        if (uname(&utn) != 0)
-               return snprintf(str, strlen, "%s-%s", PACKAGE, VERSION);
+               return snprintf(str, str_len, "%s-%s", PACKAGE, VERSION);
        p = str;
-       p += snprintf(str, strlen,
+       p += snprintf(str, str_len,
            "%s-%s:%s-%s:%s", PACKAGE, VERSION,
            utn.sysname, utn.release, utn.machine);
-       p += hardware_platform(p, strlen - (p - str));
+       p += hardware_platform(p, str_len - (p - str));
        return p - str;
 }