diff options
author | charnier <charnier@FreeBSD.org> | 1997-10-01 06:34:09 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-10-01 06:34:09 +0000 |
commit | 350fc0457c877fddb60b6711c9adecdf664818f1 (patch) | |
tree | e006274183f5035a4d46325cf71504ce4d50537a /usr.sbin/mixer | |
parent | c8ef4a7a48d8f5d12953d95267505428c7f529f0 (diff) | |
download | FreeBSD-src-350fc0457c877fddb60b6711c9adecdf664818f1.zip FreeBSD-src-350fc0457c877fddb60b6711c9adecdf664818f1.tar.gz |
According to Bruce, err(-1,..) is bogus. Change it to err(1,..). More commits
to come in this area.
Diffstat (limited to 'usr.sbin/mixer')
-rw-r--r-- | usr.sbin/mixer/mixer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index d2fead4..5c0ffa6 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -13,7 +13,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: mixer.c,v 1.7 1997/09/29 06:38:49 charnier Exp $"; #endif /* not lint */ #include <err.h> @@ -114,11 +114,11 @@ main(int argc, char *argv[]) err(1, "%s", name); free(name); if (ioctl(baz, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) - err(-1, "SOUND_MIXER_READ_DEVMASK"); + err(1, "SOUND_MIXER_READ_DEVMASK"); if (ioctl(baz, SOUND_MIXER_READ_RECMASK, &recmask) == -1) - err(-1, "SOUND_MIXER_READ_RECMASK"); + err(1, "SOUND_MIXER_READ_RECMASK"); if (ioctl(baz, SOUND_MIXER_READ_RECSRC, &recsrc) == -1) - err(-1, "SOUND_MIXER_READ_RECSRC"); + err(1, "SOUND_MIXER_READ_RECSRC"); orecsrc = recsrc; if (argc == 1) { @@ -216,11 +216,11 @@ main(int argc, char *argv[]) if (orecsrc != recsrc) if (ioctl(baz, SOUND_MIXER_WRITE_RECSRC, &recsrc) == -1) - err(-1, "SOUND_MIXER_WRITE_RECSRC"); + err(1, "SOUND_MIXER_WRITE_RECSRC"); if (drecsrc) { if (ioctl(baz, SOUND_MIXER_READ_RECSRC, &recsrc) == -1) - err(-1, "SOUND_MIXER_READ_RECSRC"); + err(1, "SOUND_MIXER_READ_RECSRC"); print_recsrc(recsrc); } |