]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Really fix a couple of compile warnings on Tru64 5.0
authorTed Lemon <source@isc.org>
Fri, 25 Aug 2000 18:46:20 +0000 (18:46 +0000)
committerTed Lemon <source@isc.org>
Fri, 25 Aug 2000 18:46:20 +0000 (18:46 +0000)
dhcpctl/cltest.c
dhcpctl/test.c

index 15cedb2b29fe80ede543a83fe985cee762631c6c..7e048ebea81c67060d96fd4c1b22b3e19429b62b 100644 (file)
@@ -40,6 +40,7 @@
 #include <sys/time.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <stdarg.h>
 #include <isc/result.h>
 #include "dhcpctl.h"
@@ -114,7 +115,7 @@ int main (argc, argv)
        if (name) {
                status = dhcpctl_new_authenticator (&authenticator,
                                                    name, algorithm, pass,
-                                                   (int)strlen (pass) + 1);
+                                                   strlen (pass) + 1);
                if (status != ISC_R_SUCCESS) {
                        fprintf (stderr, "Cannot create authenticator: %s\n",
                                 isc_result_totext (status));
index 9f39b34aa879c5a75882707d18586aea2bdc9aee..c4c91ed948a9b500548350351803a677211b494b 100644 (file)
@@ -46,6 +46,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <string.h>
 #include <isc/result.h>
 #include "dhcpctl.h"
 
@@ -104,7 +105,7 @@ int main (argc, argv)
        if (name) {
                status = dhcpctl_new_authenticator (&authenticator,
                                                    name, algorithm, pass,
-                                                   (int)strlen (pass) + 1);
+                                                   strlen (pass) + 1);
                if (status != ISC_R_SUCCESS) {
                        fprintf (stderr, "Cannot create authenticator: %s\n",
                                 isc_result_totext (status));