Fix some signed/unsigned misbehaviors; add FAQ
[srvx.git] / src / opserv.c
index 74a4380998bf6aa75f0c0cfd4fe890a5d0a2ba60..d6a0ec5604d22b1ac3ccba305870edad1bcd0466 100644 (file)
@@ -2093,7 +2093,7 @@ static MODCMD_FUNC(cmd_addtrust)
     unsigned long interval;
     char *reason, *tmp;
     struct in_addr tmpaddr;
-    int count;
+    unsigned int count;
 
     if (dict_find(opserv_trusted_hosts, argv[1], NULL)) {
         reply("OSMSG_ALREADY_TRUSTED", argv[1]);
@@ -2128,7 +2128,7 @@ static MODCMD_FUNC(cmd_edittrust)
     unsigned long interval;
     struct trusted_host *th;
     char *reason, *tmp;
-    int count;
+    unsigned int count;
 
     th = dict_find(opserv_trusted_hosts, argv[1], NULL);
     if (!th) {