diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-04 17:20:45 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-04 17:20:45 +0000 |
commit | 24f8da60e89a5ed99e35a315aa20cf528ac63c0e (patch) | |
tree | cbac399e4ff85dbe8e3e73d00242ec941d4bd2ca /os2 | |
parent | 8973db79328a885c91b9dfdcafdb28dbe9e65a88 (diff) | |
download | perl-24f8da60e89a5ed99e35a315aa20cf528ac63c0e.tar.gz |
Tweak the get*ent() OS/2 prototypes.
p4raw-id: //depot/perl@9013
Diffstat (limited to 'os2')
-rw-r--r-- | os2/os2.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1162,12 +1162,10 @@ tcp1(char *name, int arg) ((void (*)(int)) fcn) (arg); } -#ifndef HAS_GETHOSTENT /* Older versions of EMX did not have it... */ -void * gethostent() { return tcp0("GETHOSTENT"); } -void * getnetent() { return tcp0("GETNETENT"); } -void * getprotoent() { return tcp0("GETPROTOENT"); } -void * getservent() { return tcp0("GETSERVENT"); } -#endif +struct hostent * gethostent() { return tcp0("GETHOSTENT"); } +struct netent * getnetent() { return tcp0("GETNETENT"); } +struct protoent * getprotoent() { return tcp0("GETPROTOENT"); } +struct servent * getservent() { return tcp0("GETSERVENT"); } void sethostent(x) { tcp1("SETHOSTENT", x); } void setnetent(x) { tcp1("SETNETENT", x); } |