summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-11-19 10:30:25 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-11-19 10:30:25 +0000
commitb6b585e708eef3cd17a9a89138b4ce114820462a (patch)
tree8cbeb682c53f950df76eb57b41608f0d43a3e89b /clients
parent99680eed923c48f9f232f947685e7bcff8e94028 (diff)
Changed index to strchr [ANSI]
Removed prototyping that should be done by system include files
Diffstat (limited to 'clients')
-rw-r--r--clients/znol/znol.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/clients/znol/znol.c b/clients/znol/znol.c
index 8d5ebb2..74027b0 100644
--- a/clients/znol/znol.c
+++ b/clients/znol/znol.c
@@ -24,13 +24,6 @@ static char rcsid_znol_c[] = "$Id$";
#define ON 1
#define OFF 0
-#ifdef POSIX
-#include <stdlib.h>
-#else
-extern char *getenv(), *malloc();
-#endif
-extern uid_t getuid();
-
main(argc,argv)
int argc;
register char *argv[];
@@ -156,7 +149,7 @@ main(argc,argv)
subs[ind].zsub_class = LOGIN_CLASS;
(void) strcpy(name,cleanname);
- if (!index(name,'@')) {
+ if (!strchr(name,'@')) {
cp = name + strlen(name);
*cp++ = '@';
(void) strcpy(cp,ZGetRealm());