[BusyBox] Patch -- inet_common.c

Gyepi SAM gyepi at praxis-sw.com
Tue May 7 18:23:03 UTC 2002


When DEBUG is defined
1. need to include resolv.h (for _resinit())
2. remove _() call around string. It appears to be a remnant of i18n or some such notion 


Index: inet_common.c
===================================================================
RCS file: /var/cvs/busybox/libbb/inet_common.c,v
retrieving revision 1.1
diff -B -u -b -r1.1 inet_common.c
--- inet_common.c	10 Nov 2001 12:18:42 -0000	1.1
+++ inet_common.c	7 May 2002 08:14:18 -0000
@@ -16,6 +16,11 @@
 #include <unistd.h>
 #include "libbb.h"
 
+
+#ifdef DEBUG
+#include <resolv.h>
+#endif
+
 const char bb_INET_default[]="default";
 
 int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
@@ -103,7 +108,7 @@
     /* Grmpf. -FvK */
     if (s_in->sin_family != AF_INET) {
 #ifdef DEBUG
-	fprintf(stderr, _("rresolve: unsupport address family %d !\n"), s_in->sin_family);
+	fprintf(stderr, "rresolve: unsupport address family %d !\n", s_in->sin_family);
 #endif
 	errno = EAFNOSUPPORT;
 	return (-1);



More information about the busybox mailing list