summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger2005-04-23 01:42:29 +0000
committerMike Frysinger2005-04-23 01:42:29 +0000
commit7202e00b4cf78401cbe04db900712fdd004839c9 (patch)
treef9324add880b6da9edd9098cf37c8efce35c7ec5
parent5b2e27137d3468afb29df719e4b7d1e4da05cd48 (diff)
downloadbusybox-7202e00b4cf78401cbe04db900712fdd004839c9.zip
busybox-7202e00b4cf78401cbe04db900712fdd004839c9.tar.gz
remove unused variable and declare writepid inline
-rw-r--r--networking/fakeidentd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index a7cf4d1..d41177b 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -153,7 +153,7 @@ static void handlexitsigs(int signum)
}
/* May succeed. If not, won't care. */
-static void writepid(uid_t nobody, uid_t nogrp)
+static inline void writepid(uid_t nobody, uid_t nogrp)
{
char buf[24];
int fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0664);
@@ -266,8 +266,6 @@ static int checkInput(char *buf, int len, int l)
int fakeidentd_main(int argc, char **argv)
{
- int flag;
-
memset(conns, 0, sizeof(conns));
memset(&G, 0, sizeof(G));
FD_ZERO(&G.readfds);