]> jfr.im git - solanum.git/blobdiff - src/res.c
strip_tabs() is related to s_conf.c ONLY - moved it there
[solanum.git] / src / res.c
index 8d0d94f3d98962dae425bd5b247c7c7e9a97d1f3..bd5b31cce52202e58a7902a4a3470b98c7178aee 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -32,7 +32,6 @@
 #include "res.h"
 #include "reslib.h"
 #include "irc_string.h"
-#include "sprintf_irc.h"
 #include "numeric.h"
 #include "client.h" /* SNO_* */
 
@@ -407,7 +406,7 @@ static void do_query_name(struct DNSQuery *query, const char *name, struct resli
 {
        char host_name[HOSTLEN + 1];
 
-       strlcpy(host_name, name, HOSTLEN + 1);
+       rb_strlcpy(host_name, name, HOSTLEN + 1);
        add_local_domain(host_name, HOSTLEN);
 
        if (request == NULL)
@@ -418,7 +417,7 @@ static void do_query_name(struct DNSQuery *query, const char *name, struct resli
                request->state = REQ_A;
        }
 
-       strlcpy(request->queryname, host_name, sizeof(request->queryname));
+       rb_strlcpy(request->queryname, host_name, sizeof(request->queryname));
        request->type = type;
        query_name(request);
 }
@@ -681,7 +680,7 @@ static int proc_answer(struct reslist *request, HEADER * header, char *buf, char
                          else if (n == 0)
                                  return (0);   /* no more answers left */
 
-                         strlcpy(request->name, hostbuf, HOSTLEN + 1);
+                         rb_strlcpy(request->name, hostbuf, HOSTLEN + 1);
 
                          return (1);
                          break;
@@ -864,9 +863,9 @@ void report_dns_servers(struct Client *source_p)
 
        for (i = 0; i < irc_nscount; i++)
        {
-               if (!inetntop_sock((struct sockaddr *)&(irc_nsaddr_list[i]),
+               if (!rb_inet_ntop_sock((struct sockaddr *)&(irc_nsaddr_list[i]),
                                ipaddr, sizeof ipaddr))
-                       strlcpy(ipaddr, "?", sizeof ipaddr);
+                       rb_strlcpy(ipaddr, "?", sizeof ipaddr);
                sendto_one_numeric(source_p, RPL_STATSDEBUG,
                                "A %s", ipaddr);
        }