summaryrefslogtreecommitdiff
path: root/libc/misc/syslog
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-10 14:43:07 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-10 14:43:07 +0000
commitea650dfc5bf37fb36ff8d831a153ddc01a59adeb (patch)
tree7e1c0ab4f055619b89a78550bfde4b7784a4eadb /libc/misc/syslog
parent31307f870770f7af155f434fffea455fe6b5f29c (diff)
Use strchr instead of index (BSD)
Diffstat (limited to 'libc/misc/syslog')
-rw-r--r--libc/misc/syslog/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 2b478e13d..704336006 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -254,7 +254,7 @@ vsyslog( int pri, const char *fmt, va_list ap )
/* should mode be `O_WRONLY | O_NOCTTY' ? -- Uli */
if (LogStat & LOG_CONS &&
(fd = open(_PATH_CONSOLE, O_WRONLY, 0)) >= 0) {
- p = index(tbuf, '>') + 1;
+ p = strchr(tbuf, '>') + 1;
last_chr[0] = '\r';
last_chr[1] = '\n';
(void)write(fd, p, last_chr - p + 2);