newvector should be a bool
[freeradius.git] / src / modules / proto_dhcp / dhcpclient.c
index 98b8c7f..dad87a7 100644 (file)
@@ -107,7 +107,7 @@ static int request_init(char const *filename)
                fp = stdin;
        }
 
-       request = rad_alloc(NULL, 0);
+       request = rad_alloc(NULL, false);
 
        /*
         *      Read the VP's.
@@ -340,7 +340,7 @@ int main(int argc, char **argv)
                        portname = NULL;
                }
 
-               if (ip_hton(AF_INET, hostname, &server_ipaddr) < 0) {
+               if (ip_hton(&server_ipaddr, AF_INET, hostname, false) < 0) {
                        fprintf(stderr, "dhcpclient: Failed to find IP address for host %s: %s\n", hostname, fr_syserror(errno));
                        exit(1);
                }