rf_MakeConfig succeeds only if it returns 0, not if it returns

values 0 or greater.
This commit is contained in:
oster 1999-08-15 03:18:19 +00:00
parent 225f5a8b60
commit b2af35bc2d
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: raidctl.c,v 1.8 1999/08/15 03:15:00 oster Exp $ */
/* $NetBSD: raidctl.c,v 1.9 1999/08/15 03:18:19 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@ -337,7 +337,7 @@ rf_configure(fd,config_file,force)
void *generic;
RF_Config_t cfg;
if (rf_MakeConfig( config_file, &cfg ) < 0) {
if (rf_MakeConfig( config_file, &cfg ) != 0) {
fprintf(stderr,"%s: unable to create RAIDframe %s\n",
__progname, "configuration structure\n");
exit(1);