diff options
author | Andrew Stormont <andyjstormont@googlemail.com> | 2011-06-13 22:27:38 +0100 |
---|---|---|
committer | Andrew Stormont <andyjstormont@googlemail.com> | 2011-06-13 22:27:38 +0100 |
commit | b404105b6f44ed2180fae8c172b15fd1787b72a9 (patch) | |
tree | 8ffea7d15342a083503e4f1bca4463337714d1d5 /hald/solaris/probing/probe-storage.c | |
parent | ecb86f4d5b6d0354d8fac639755464c6c3706e6d (diff) | |
download | hal-master.tar.gz |
Diffstat (limited to 'hald/solaris/probing/probe-storage.c')
-rw-r--r-- | hald/solaris/probing/probe-storage.c | 2 |
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); |