From 7202e00b4cf78401cbe04db900712fdd004839c9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 23 Apr 2005 01:42:29 +0000 Subject: remove unused variable and declare writepid inline --- networking/fakeidentd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c index a7cf4d11e..d41177b07 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); -- cgit v1.2.3