diff options
author | green <green@FreeBSD.org> | 1999-07-24 16:24:03 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-07-24 16:24:03 +0000 |
commit | 4a70c57660155a95e66e09143ba31e45fa75cc3d (patch) | |
tree | e0ffabcd46727d2bc7909df71ae4f7b66ffc609e /usr.sbin/inetd | |
parent | 3f78faa42d00715dd2d05b4d9b8c7544014d1ded (diff) | |
download | FreeBSD-src-4a70c57660155a95e66e09143ba31e45fa75cc3d.zip FreeBSD-src-4a70c57660155a95e66e09143ba31e45fa75cc3d.tar.gz |
Clean up to match style(9) more closely. This should fix the problem of
people having ants in their pants ;)
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/builtins.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c index 3c52aa2..4b933aa 100644 --- a/usr.sbin/inetd/builtins.c +++ b/usr.sbin/inetd/builtins.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: builtins.c,v 1.8 1999/07/24 12:35:50 sheldonh Exp $ + * $Id: builtins.c,v 1.9 1999/07/24 13:02:09 sheldonh Exp $ * */ @@ -333,11 +333,11 @@ ident_stream(s, sep) /* Ident service */ { struct sockaddr_in sin[2]; struct ucred uc; - struct passwd *pw; struct timeval tv = { 10, 0 }; + struct passwd *pw; fd_set fdset; char buf[BUFSIZE], *cp = NULL, *p, **av, *osname = NULL; int len, c, rflag = 0, fflag = 0, argc = 0; @@ -349,6 +349,8 @@ ident_stream(s, sep) /* Ident service */ for (av = sep->se_argv; *av; av++) argc++; if (argc) { + int sec, usec; + while ((c = getopt(argc, sep->se_argv, "fro:t:")) != -1) switch (c) { case 'f': @@ -361,9 +363,6 @@ ident_stream(s, sep) /* Ident service */ osname = optarg; break; case 't': - { - int sec, usec; - switch (sscanf(optarg, "%d.%d", &sec, &usec)) { case 2: tv.tv_usec = usec; @@ -375,7 +374,7 @@ ident_stream(s, sep) /* Ident service */ warnx("bad -t argument"); break; } - } + break; default: break; } |