0 is a success code for ioctl(). Fixes install problem introduced by
revision 1.9 last November.
This commit is contained in:
parent
0467cc278e
commit
b9e63b2210
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sgivol.c,v 1.9 2004/11/24 22:01:21 jmc Exp $ */
|
||||
/* $NetBSD: sgivol.c,v 1.10 2005/02/28 06:44:55 sekiya Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -235,7 +235,7 @@ main(int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
#else
|
||||
if (ioctl(fd, DIOCGDINFO, &lbl) < 1) {
|
||||
if (ioctl(fd, DIOCGDINFO, &lbl) < 0) {
|
||||
perror("DIOCGDINFO");
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue