[BusyBox] inetd patch

Stephane Billiart stephane at reefedge.com
Mon Jul 26 14:54:08 UTC 2004


This patch against rc2 defines setproctitle only when needed: for echo,
discard and chargen.
This avoids a compiler warning and saves a few bytes.

-- 
Stephane
-------------- next part --------------
--- networking/inetd.c.orig	2004-07-26 10:33:16.000000000 -0400
+++ networking/inetd.c	2004-07-26 10:38:21.000000000 -0400
@@ -445,6 +445,9 @@
 static char **Argv;
 static char *LastArg;
 
+#if defined CONFIG_FEATURE_INETD_SUPPORT_BILTIN_ECHO || \
+	defined CONFIG_FEATURE_INETD_SUPPORT_BILTIN_DISCARD || \
+	defined CONFIG_FEATURE_INETD_SUPPORT_BILTIN_CHARGEN
 static void setproctitle(char *a, int s)
 {
 	size_t size;
@@ -463,6 +466,7 @@
 	while (cp < LastArg)
 		*cp++ = ' ';
 }
+#endif
 #endif  /* INETD_FEATURE_ENABLED */
 
 


More information about the busybox mailing list