summaryrefslogtreecommitdiff
path: root/usr.bin/nc/netcat.c
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2001-06-26 19:31:11 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2001-06-26 19:31:11 +0000
commitb82e290e218f6249a5b2aeae788ef47d965edb1b (patch)
tree5539c05484d70a426cc48bd51b85f8e4411d98d0 /usr.bin/nc/netcat.c
parent0acc9f2a708a5a773e72759eb97a4914e99c89c6 (diff)
rename variable, as not to conflict
Diffstat (limited to 'usr.bin/nc/netcat.c')
-rw-r--r--usr.bin/nc/netcat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index 5497eaba3a1..980f335f24f 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.22 2001/06/26 07:38:05 jasoni Exp $ */
+/* $OpenBSD: netcat.c,v 1.23 2001/06/26 19:31:10 ericj Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
*
@@ -184,20 +184,20 @@ main(argc, argv)
* functions to talk to the caller.
*/
if (uflag) {
- int ret;
+ int rv;
char buf[1024];
char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];
struct sockaddr_storage z;
len = sizeof(z);
- ret = recvfrom(s, buf, sizeof(buf), MSG_PEEK,
+ rv = recvfrom(s, buf, sizeof(buf), MSG_PEEK,
(struct sockaddr *)&z, &len);
- if (ret < 0)
+ if (rv < 0)
errx(1, "%s", strerror(errno));
- ret = connect(s, (struct sockaddr *)&z,
+ rv = connect(s, (struct sockaddr *)&z,
len);
- if (ret < 0)
+ if (rv < 0)
errx(1, "%s", strerror(errno));
connfd = s;