summaryrefslogtreecommitdiffstats
path: root/eBones/lib/libkrb/get_phost.c
diff options
context:
space:
mode:
Diffstat (limited to 'eBones/lib/libkrb/get_phost.c')
-rw-r--r--eBones/lib/libkrb/get_phost.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/eBones/lib/libkrb/get_phost.c b/eBones/lib/libkrb/get_phost.c
index 4b0f495..cd83b2d 100644
--- a/eBones/lib/libkrb/get_phost.c
+++ b/eBones/lib/libkrb/get_phost.c
@@ -15,10 +15,10 @@ static char rcsid[] =
#endif
#include <stdio.h>
-#include <string.h>
#include <ctype.h>
#include <netdb.h>
-#include <krb.h>
+
+char *index();
/*
* This routine takes an alias for a host name and returns the first
@@ -37,7 +37,8 @@ static char rcsid[] =
* to the original "alias" argument is returned.
*/
-char *krb_get_phost(char *alias)
+char * krb_get_phost(alias)
+ char *alias;
{
struct hostent *h;
char *phost = alias;
OpenPOWER on IntegriCloud