#include <signal.h>
#include <setjmp.h>
#include <netdb.h>
+#include <string.h>
#ifdef KERBEROS
#include <krb5/krb5.h>
# define SIGUSR1 30
# endif /* SIGUSR1 */
-char *index(), *rindex(), *getenv(), *strcat(), *strcpy();
+char *getenv();
#ifndef convex
struct passwd *getpwuid();
#endif
int debug_port = 0;
#endif /* KERBEROS */
- if (rindex(argv[0], '/'))
- argv[0] = rindex(argv[0], '/')+1;
+ if (strrchr(argv[0], '/'))
+ argv[0] = strrchr(argv[0], '/')+1;
if ( argc < 2 ) goto usage;
argc--;
struct ltchars noltc = { -1, -1, -1, -1, -1, -1 };
-
doit(oldmask)
{
#ifdef USE_TERMIO
UCB_RLOGIN);
fflush(stderr);
- host = rindex(argv[0], '/');
+ host = strrchr(argv[0], '/');
if (host)
host++;
else