[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BusyBox] inetd patch
From: "Stephane Billiart" <stephane () reefedge ! com>
Date: 2004-07-26 14:54:08
Message-ID: 20040726145408.GA3478 () stephane ! reefedge ! com
[Download RAW message or body]
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
["patch.inetd" (text/plain)]
--- 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 */
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic