diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-10 14:43:07 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-10 14:43:07 +0000 |
commit | ea650dfc5bf37fb36ff8d831a153ddc01a59adeb (patch) | |
tree | 7e1c0ab4f055619b89a78550bfde4b7784a4eadb /libc/misc/syslog | |
parent | 31307f870770f7af155f434fffea455fe6b5f29c (diff) |
Use strchr instead of index (BSD)
Diffstat (limited to 'libc/misc/syslog')
-rw-r--r-- | libc/misc/syslog/syslog.c | 2 |
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); |