aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/inetd/builtins.c
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-07-24 16:24:03 +0000
committerBrian Feldman <green@FreeBSD.org>1999-07-24 16:24:03 +0000
commitb52c43b3570f1a3a52f7968c23a04f3d8c825818 (patch)
tree5d51b4d006832a1e7f38e9144d5bc682e3ba07b4 /usr.sbin/inetd/builtins.c
parent15c2a9ef791e824d3ccde34f6631b18efbdfdef4 (diff)
downloadsrc-b52c43b3570f1a3a52f7968c23a04f3d8c825818.tar.gz
src-b52c43b3570f1a3a52f7968c23a04f3d8c825818.zip
Clean up to match style(9) more closely. This should fix the problem of
people having ants in their pants ;)
Notes
Notes: svn path=/head/; revision=49054
Diffstat (limited to 'usr.sbin/inetd/builtins.c')
-rw-r--r--usr.sbin/inetd/builtins.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c
index 3c52aa2182d2..4b933aaeeb10 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;
}