diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-07-25 10:54:30 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2009-07-25 10:54:30 +0000 |
commit | 9e83c2d923dffc6fec6e897577dd71af45fd7ea9 (patch) | |
tree | 49b90720b96fd4839d9150bad74e3b7304058741 /usr.bin | |
parent | d30aff0c8eee838d92d6ae854abd3a550e63f3bc (diff) |
sio_open returns a pointer so the < 0 comparison is wrong
from Thomas Pfaff, thanks
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/aucat/legacy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/legacy.c b/usr.bin/aucat/legacy.c index d07f8feed86..23977b7f35e 100644 --- a/usr.bin/aucat/legacy.c +++ b/usr.bin/aucat/legacy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: legacy.c,v 1.7 2009/07/25 10:52:19 ratchov Exp $ */ +/* $OpenBSD: legacy.c,v 1.8 2009/07/25 10:54:29 ratchov Exp $ */ /* * Copyright (c) 1997 Kenneth Stailey. All rights reserved. * @@ -108,7 +108,7 @@ legacy_play(char *dev, char *aufile) if (lseek(fd, (off_t)pos, SEEK_SET) == -1) warn("lseek"); - if ((hdl = sio_open(dev, SIO_PLAY, 0)) < 0) { + if ((hdl = sio_open(dev, SIO_PLAY, 0)) == NULL) { warnx("can't get sndio handle"); return(1); } |