mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +00:00
remove unused variable and declare writepid inline
This commit is contained in:
parent
5b2e27137d
commit
7202e00b4c
@ -153,7 +153,7 @@ static void handlexitsigs(int signum)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* May succeed. If not, won't care. */
|
/* 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];
|
char buf[24];
|
||||||
int fd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0664);
|
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 fakeidentd_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int flag;
|
|
||||||
|
|
||||||
memset(conns, 0, sizeof(conns));
|
memset(conns, 0, sizeof(conns));
|
||||||
memset(&G, 0, sizeof(G));
|
memset(&G, 0, sizeof(G));
|
||||||
FD_ZERO(&G.readfds);
|
FD_ZERO(&G.readfds);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user