diff --git a/sbin/raidctl/Makefile b/sbin/raidctl/Makefile index ee303cbf9d3e..1dba2108ed34 100644 --- a/sbin/raidctl/Makefile +++ b/sbin/raidctl/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.5 1999/03/26 00:46:05 oster Exp $ +# $NetBSD: Makefile,v 1.6 1999/08/07 23:48:11 oster Exp $ PROG= raidctl -SRCS= rf_configure.c rf_layout.c rf_strutils.c raidctl.c +SRCS= rf_configure.c rf_layout.c raidctl.c MAN= raidctl.8 LOOKHERE = ${.CURDIR}/../../sys/dev/raidframe diff --git a/sbin/raidctl/rf_configure.c b/sbin/raidctl/rf_configure.c index d5f177ce38be..7558c2195613 100644 --- a/sbin/raidctl/rf_configure.c +++ b/sbin/raidctl/rf_configure.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_configure.c,v 1.6 1999/03/26 00:45:01 oster Exp $ */ +/* $NetBSD: rf_configure.c,v 1.7 1999/08/07 23:48:11 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -54,7 +54,6 @@ #include #include "rf_raid.h" #include "rf_raidframe.h" -#include "rf_utils.h" #include "rf_general.h" #include "rf_decluster.h" #include "rf_configure.h" @@ -79,6 +78,9 @@ that file here in userland.. GO bzero((char *)_p_, _size_); \ } +char *rf_find_non_white(char *p); +char *rf_find_white(char *p); + static int rf_search_file_for_start_of(char *string, char *buf, int len, @@ -346,6 +348,22 @@ int rf_MakeLayoutSpecificDeclustered(configfp, cfgPtr, arg) * ***************************************************************************/ +/* finds a non-white character in the line */ +char * +rf_find_non_white(char *p) +{ + for (; *p != '\0' && (*p == ' ' || *p == '\t'); p++); + return (p); +} + +/* finds a white character in the line */ +char * +rf_find_white(char *p) +{ + for (; *p != '\0' && (*p != ' ' && *p != '\t'); p++); + return (p); +} + /* searches a file for a line that says "START string", where string is * specified as a parameter */