diff options
author | millert <millert@openbsd.org> | 2015-11-16 23:47:52 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2015-11-16 23:47:52 +0000 |
commit | 42a45d4abca6992d9b81e202a8999ced538ec096 (patch) | |
tree | 0048b3c4c722b05ab4702bb3229058a176a64ff8 /usr.sbin/mopd | |
parent | 0x7f is a valid key. (diff) | |
download | wireguard-openbsd-42a45d4abca6992d9b81e202a8999ced538ec096.tar.xz wireguard-openbsd-42a45d4abca6992d9b81e202a8999ced538ec096.zip |
Replace remaining calls to index(3) with strchr(3). OK jca@ krw@
Diffstat (limited to 'usr.sbin/mopd')
-rw-r--r-- | usr.sbin/mopd/mopd/process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mopd/mopd/process.c b/usr.sbin/mopd/mopd/process.c index 788c24bc6c9..f63ae1566c7 100644 --- a/usr.sbin/mopd/mopd/process.c +++ b/usr.sbin/mopd/mopd/process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: process.c,v 1.20 2013/07/05 21:02:07 miod Exp $ */ +/* $OpenBSD: process.c,v 1.21 2015/11/16 23:47:52 millert Exp $ */ /* * Copyright (c) 1993-95 Mats O Jansson. All rights reserved. @@ -291,7 +291,7 @@ mopNextLoad(u_char *dst, u_char *src, u_char new_count, int trans) } else { if (len == 0) { i = gethostname(hname, sizeof(hname)); - p = index(hname, '.'); + p = strchr(hname, '.'); if (p != NULL) *p = 0; |