shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS shishi/lib


From: shishi-commit
Subject: CVS shishi/lib
Date: Fri, 17 Sep 2004 13:35:15 +0200

Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv21080/lib

Modified Files:
        resolv.c 
Log Message:
Use xinet.

--- /home/cvs/shishi/lib/resolv.c       2003/12/21 13:56:25     1.7
+++ /home/cvs/shishi/lib/resolv.c       2004/09/17 11:35:09     1.8
@@ -1,5 +1,5 @@
 /* resolv.c --- Resolver glue.
- * Copyright (C) 2003  Simon Josefsson
+ * Copyright (C) 2003, 2004  Simon Josefsson
  * Copyright (c) 2002 Jeremie Miller, Thomas Muldowney,
  *                    Ryan Eatmon, Robert Norris
  *
@@ -31,6 +31,9 @@
 
 #ifdef HAVE_LIBRESOLV
 
+/* Get xinet_ntoa. */
+#include "xinet.h"
+
 /* the largest packet we'll send and receive */
 #if PACKETSZ > 1024
 # define MAX_PACKET PACKETSZ
@@ -52,7 +55,7 @@
   GETLONG (in.s_addr, *scan);
   in.s_addr = ntohl (in.s_addr);
 
-  return xstrdup (inet_ntoa (in));
+  return xinet_ntoa (in);
 }
 
 static void *





reply via email to

[Prev in Thread] Current Thread [Next in Thread]