summaryrefslogtreecommitdiff
path: root/lib/ZOpenPort.c
diff options
context:
space:
mode:
authorGravatar Robert S. French <rfrench@mit.edu>1987-06-12 13:18:37 +0000
committerGravatar Robert S. French <rfrench@mit.edu>1987-06-12 13:18:37 +0000
commit0bc350cf316ae93407a48a552442ea8f36339c2f (patch)
tree4c308771cddded8e72a3ca0aa2806f2d0bb76fd2 /lib/ZOpenPort.c
parent0bbd371874492ecf9630cfa620af5812e6778115 (diff)
ZERR_UNIX -> errno
Diffstat (limited to 'lib/ZOpenPort.c')
-rw-r--r--lib/ZOpenPort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ZOpenPort.c b/lib/ZOpenPort.c
index 841e7ea..459b212 100644
--- a/lib/ZOpenPort.c
+++ b/lib/ZOpenPort.c
@@ -27,7 +27,7 @@ Code_t ZOpenPort(port)
if ((__Zephyr_fd = socket(AF_INET,SOCK_DGRAM,0)) < 0) {
__Zephyr_fd = -1;
- return (ZERR_UNIX);
+ return (errno);
}
bindin.sin_family = AF_INET;
@@ -51,7 +51,7 @@ Code_t ZOpenPort(port)
+1);
}
else
- return (ZERR_UNIX);
+ return (errno);
}
} while (retval < 0 && port);