]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix calls to omapi_protocol_connect and omapi_protocol_listen.
authorTed Lemon <source@isc.org>
Tue, 23 Nov 1999 19:07:17 +0000 (19:07 +0000)
committerTed Lemon <source@isc.org>
Tue, 23 Nov 1999 19:07:17 +0000 (19:07 +0000)
omapip/test.c

index d8065d9417ccdcf410d3008a2d0a6cfc819eb77a..cea562d94889864e6ce79766305b4fc3b3b161ad 100644 (file)
@@ -47,7 +47,7 @@ int main (int argc, char **argv)
                        exit (1);
                }
                status = omapi_protocol_listen (listener,
-                                               atoi (argv [2]), 1);
+                                               (unsigned)atoi (argv [2]), 1);
                if (status != ISC_R_SUCCESS) {
                        fprintf (stderr, "omapi_listen: %s\n",
                                 isc_result_totext (status));
@@ -66,7 +66,8 @@ int main (int argc, char **argv)
                        exit (1);
                }
                status = omapi_protocol_connect (connection,
-                                                argv [2], atoi (argv [3]), 0);
+                                                argv [2],
+                                                (unsigned)atoi (argv [3]), 0);
                fprintf (stderr, "connect: %s\n", isc_result_totext (status));
                if (status != ISC_R_SUCCESS)
                        exit (1);