diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-24 06:28:10 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-24 06:28:10 +0000 |
commit | dd7cb935a7f08fd16aebfb736d84cdec6e3d5dd0 (patch) | |
tree | 990170d2d2e9a63fd6d0e49c98fcce027d95e61f /lib/ZGetWGPort.c | |
parent | bbd45b83daf73d64ec3e8d193c2f1dacfafb652a (diff) |
declare wgport as a short (for fscanf)
Diffstat (limited to 'lib/ZGetWGPort.c')
-rw-r--r-- | lib/ZGetWGPort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ZGetWGPort.c b/lib/ZGetWGPort.c index a7c623c..b9901f8 100644 --- a/lib/ZGetWGPort.c +++ b/lib/ZGetWGPort.c @@ -38,7 +38,7 @@ short ZGetWGPort() return (-1); /* if fscanf fails, return -1 via wgport */ - if (fscanf(fp, "%d", &wgport) != 1) + if (fscanf(fp, "%hd", &wgport) != 1) wgport = -1; (void) fclose(fp); |