Fix incorrect parameters to printf style functions

This commit is contained in:
Mark 2003-12-02 20:24:02 +00:00
parent 01d5136a1d
commit 0c96dcc543
2 changed files with 5 additions and 5 deletions

4
opsb.c
View file

@ -305,7 +305,7 @@ int __Bot_Message(char *origin, char **argv, int argc)
return 0;
}
if (list_isfull(exempt)) {
prefmsg(u->nick, s_opsb, "Error, Exception list is full", s_opsb);
prefmsg(u->nick, s_opsb, "Error, Exception list is full");
return 0;
}
if (!index(argv[3], '.')) {
@ -392,7 +392,7 @@ int __Bot_Message(char *origin, char **argv, int argc)
return 0;
}
if (list_isfull(opsb.ports)) {
prefmsg(u->nick, s_opsb, "Error, Ports list is full", s_opsb);
prefmsg(u->nick, s_opsb, "Error, Ports list is full");
return 0;
}
if (!atoi(argv[4])) {

View file

@ -266,8 +266,8 @@ void send_status(User *u) {
SET_SEGV_LOCATION();
prefmsg(u->nick, s_opsb, "Proxy Results:");
prefmsg(u->nick, s_opsb, "Hosts Scanned: %d Hosts found Open: %d Exceptions %d", opsb.scanned, opsb.open, list_count(exempt));
prefmsg(u->nick, s_opsb, "Cache Entries: %d", list_count(cache));
prefmsg(u->nick, s_opsb, "Hosts Scanned: %d Hosts found Open: %d Exceptions %d", opsb.scanned, opsb.open, (int)list_count(exempt));
prefmsg(u->nick, s_opsb, "Cache Entries: %d", (int)list_count(cache));
prefmsg(u->nick, s_opsb, "Cache Hits: %d", opsb.cachehits);
prefmsg(u->nick, s_opsb, "Blacklist Hits: %d", opsb.opmhits);
#if 0
@ -275,7 +275,7 @@ void send_status(User *u) {
prefmsg(u->nick, s_opsb, "Proxy %s (%d) Found %d Open %d", proxy_list[i].type, proxy_list[i].port, proxy_list[i].nofound, proxy_list[i].noopen);
}
#endif
prefmsg(u->nick, s_opsb, "Currently Scanning %d Proxies (%d in queue):", list_count(opsbl), list_count(opsbq));
prefmsg(u->nick, s_opsb, "Currently Scanning %d Proxies (%d in queue):", (int)list_count(opsbl), (int)list_count(opsbq));
node = list_first(opsbl);
while (node) {
scandata = lnode_get(node);