diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-06-12 18:16:14 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-06-12 18:16:14 +0000 |
commit | 2969b66410b30c2f3df0c190a713cf3ccb59e1c5 (patch) | |
tree | d0c952c67d154c3a66ab7ddc0dce0b03c8bdb1f1 /sys/arch/vax | |
parent | b8a259d7c68553c267bfc2c902b68fef01ac5389 (diff) |
index() function is deprecated and shouldn't be used in new code,
replace it with strchr(). tested and ok martin@, ok deraadt@.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r-- | sys/arch/vax/boot/boot/boot.c | 6 | ||||
-rw-r--r-- | sys/arch/vax/stand/boot/boot.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/vax/boot/boot/boot.c b/sys/arch/vax/boot/boot/boot.c index 4d0986b3f4e..09463870529 100644 --- a/sys/arch/vax/boot/boot/boot.c +++ b/sys/arch/vax/boot/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.12 2003/08/15 23:16:30 deraadt Exp $ */ +/* $OpenBSD: boot.c,v 1.13 2005/06/12 18:16:13 xsa Exp $ */ /* $NetBSD: boot.c,v 1.18 2002/05/31 15:58:26 ragge Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -182,7 +182,7 @@ Xmain(void) if (c[0] == 0) continue; - if ((d = index(c, ' '))) + if ((d = strchr(c, ' '))) *d++ = 0; while (v->namn) { @@ -218,7 +218,7 @@ boot(char *arg) if (*arg != '-') { fn = arg; - if ((arg = index(arg, ' '))) { + if ((arg = strchr(arg, ' '))) { *arg++ = 0; while (*arg == ' ') arg++; diff --git a/sys/arch/vax/stand/boot/boot.c b/sys/arch/vax/stand/boot/boot.c index 4d0986b3f4e..09463870529 100644 --- a/sys/arch/vax/stand/boot/boot.c +++ b/sys/arch/vax/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.12 2003/08/15 23:16:30 deraadt Exp $ */ +/* $OpenBSD: boot.c,v 1.13 2005/06/12 18:16:13 xsa Exp $ */ /* $NetBSD: boot.c,v 1.18 2002/05/31 15:58:26 ragge Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -182,7 +182,7 @@ Xmain(void) if (c[0] == 0) continue; - if ((d = index(c, ' '))) + if ((d = strchr(c, ' '))) *d++ = 0; while (v->namn) { @@ -218,7 +218,7 @@ boot(char *arg) if (*arg != '-') { fn = arg; - if ((arg = index(arg, ' '))) { + if ((arg = strchr(arg, ' '))) { *arg++ = 0; while (*arg == ' ') arg++; |