diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-07 00:44:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-07 00:44:31 +0000 |
commit | 04c99ebb4f59d784d8bceaad86cb6227c1babd17 (patch) | |
tree | 706ebe3ac53a058c11f8a053f073fa6a387f0bbb /networking/isrv_identd.c | |
parent | 19507f0869571f29cfd0a4aed3d7c07db038b129 (diff) | |
download | busybox-w32-04c99ebb4f59d784d8bceaad86cb6227c1babd17.tar.gz busybox-w32-04c99ebb4f59d784d8bceaad86cb6227c1babd17.tar.bz2 busybox-w32-04c99ebb4f59d784d8bceaad86cb6227c1babd17.zip |
random small shrinkage and elimination of statics
Diffstat (limited to 'networking/isrv_identd.c')
-rw-r--r-- | networking/isrv_identd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c index c230c7ec3..59daf99ed 100644 --- a/networking/isrv_identd.c +++ b/networking/isrv_identd.c | |||
@@ -19,7 +19,7 @@ typedef struct identd_buf_t { | |||
19 | char buf[64 - 2*sizeof(int)]; | 19 | char buf[64 - 2*sizeof(int)]; |
20 | } identd_buf_t; | 20 | } identd_buf_t; |
21 | 21 | ||
22 | static const char *bogouser = "nobody"; | 22 | #define bogouser bb_common_bufsiz1 |
23 | 23 | ||
24 | static int new_peer(isrv_state_t *state, int fd) | 24 | static int new_peer(isrv_state_t *state, int fd) |
25 | { | 25 | { |
@@ -108,8 +108,9 @@ int fakeidentd_main(int argc, char **argv) | |||
108 | int fd; | 108 | int fd; |
109 | 109 | ||
110 | opt = getopt32(argc, argv, "fiwb:", &bind_address); | 110 | opt = getopt32(argc, argv, "fiwb:", &bind_address); |
111 | if (optind < argc) | 111 | strcpy(bogouser, "nobody"); |
112 | bogouser = argv[optind]; | 112 | if (argv[optind]) |
113 | strncpy(bogouser, argv[optind], sizeof(bogouser)); | ||
113 | 114 | ||
114 | /* Daemonize if no -f and no -i and no -w */ | 115 | /* Daemonize if no -f and no -i and no -w */ |
115 | if (!(opt & OPT_fiw)); | 116 | if (!(opt & OPT_fiw)); |