summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-06-10 06:31:34 +0000
committerderaadt <deraadt@openbsd.org>1996-06-10 06:31:34 +0000
commit8f6952f54c663a58a43a1ecaa72ba6084798ebf1 (patch)
treecc1af0b15059bde7d682b4c146432251aba02ce4 /lib/libc/net/rcmd.c
parentUse setne instead of setnel, new versions of gas balk at the bad mnemonic. (diff)
downloadwireguard-openbsd-8f6952f54c663a58a43a1ecaa72ba6084798ebf1.tar.xz
wireguard-openbsd-8f6952f54c663a58a43a1ecaa72ba6084798ebf1.zip
iruserok() can finally safely use a u_int32_t for the ip addr
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r--lib/libc/net/rcmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 3db3d86400b..b7877635941 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -73,7 +73,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
struct hostent *hp;
struct sockaddr_in sin, from;
fd_set reads;
- long oldmask;
+ int oldmask;
pid_t pid;
int s, lport, timo;
char c;
@@ -280,7 +280,7 @@ ruserok(rhost, superuser, ruser, luser)
*/
int
iruserok(raddr, superuser, ruser, luser)
- u_long raddr;
+ u_int32_t raddr;
int superuser;
const char *ruser, *luser;
{