remove unused variables, add braces.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5381 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-02-19 05:17:11 +00:00
parent d469bf58ff
commit 7f8b81d6f1

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska H<>gskolan
* Copyright (c) 1995, 1996, 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -456,7 +456,7 @@ doit_passive (int sock, des_cblock *key, des_key_schedule schedule,
}
for (;;) {
pid_t child;
int fd;
int fd = -1;
fd_set fds;
int i;
int ret;
@@ -534,11 +534,12 @@ doit_passive (int sock, des_cblock *key, des_key_schedule schedule,
}
}
}
if (fd < 0)
if (fd < 0) {
if (errno == EINTR)
continue;
else
return 1;
}
child = fork ();
if (child < 0) {
@@ -617,7 +618,6 @@ doit(int sock, int tcpp)
des_cblock key;
struct sockaddr_in me, him;
int flags;
u_char msg[1024], *p;
struct x_socket *sockets;
int nsockets;
int dispnr;