summaryrefslogtreecommitdiff
path: root/lib/ZGetWGPort.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-23 07:11:25 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-23 07:11:25 +0000
commit173238e12a128fa398da9a8f845833caab830bb3 (patch)
treec398d0801a9e5549ba9a60a01490e64d8029e31c /lib/ZGetWGPort.c
parent7810c5c80acdf2ce08dc8e3b972eb79325dc1426 (diff)
use a u_short, since that's what ports are really.
Diffstat (limited to 'lib/ZGetWGPort.c')
-rw-r--r--lib/ZGetWGPort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ZGetWGPort.c b/lib/ZGetWGPort.c
index c2d28e8..cdd1f45 100644
--- a/lib/ZGetWGPort.c
+++ b/lib/ZGetWGPort.c
@@ -23,11 +23,11 @@ static char rcsid_ZGetWGPort_c[] = "$Header$";
extern char *getenv();
extern uid_t getuid();
-int ZGetWGPort()
+u_short ZGetWGPort()
{
char *envptr, name[128];
FILE *fp;
- int wgport;
+ u_short wgport;
envptr = getenv("WGFILE");
if (!envptr) {