From: John Kohl Date: Mon, 29 Oct 1990 14:19:38 +0000 (+0000) Subject: use string.h X-Git-Tag: krb5-1.0-alpha2~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1cc4b91b2b1dab706f635a42854998ac6e47c71a;p=krb5.git use string.h and strchr git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1360 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/posix/syslog.c b/src/lib/krb5/posix/syslog.c index 2d8276d87..5f30fc47f 100644 --- a/src/lib/krb5/posix/syslog.c +++ b/src/lib/krb5/posix/syslog.c @@ -49,7 +49,7 @@ static char sccsid[] = "@(#)syslog.c 5.20 (Berkeley) 1/19/89"; #include #include #include -#include +#include #include #define LOGNAME "/dev/log" @@ -164,7 +164,7 @@ vsyslog(pri, fmt, ap) return; (void)alarm((u_int)0); (void)strcat(tbuf, "\r"); - p = index(tbuf, '>') + 1; + p = strchr(tbuf, '>') + 1; (void)write(fd, p, cnt + 1 - (p - tbuf)); (void)close(fd); _exit(0);