summaryrefslogtreecommitdiff
path: root/hald/solaris/probing/probe-storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'hald/solaris/probing/probe-storage.c')
-rw-r--r--hald/solaris/probing/probe-storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hald/solaris/probing/probe-storage.c b/hald/solaris/probing/probe-storage.c
index d274aa93..123d7e46 100644
--- a/hald/solaris/probing/probe-storage.c
+++ b/hald/solaris/probing/probe-storage.c
@@ -268,7 +268,7 @@ check_floppy(int fd, dbus_bool_t *wprot)
int chg;
if ((ioctl(fd, FDGETCHANGE, &chg) == 0) && !(chg & FDGC_CURRENT)) {
- *wprot = ((chg & FDGC_CURWPROT) != NULL);
+ *wprot = ((chg & FDGC_CURWPROT) != 0);
return (TRUE);
} else {
return (FALSE);