diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-08-20 06:56:55 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-08-20 06:56:55 +0000 |
commit | b66395951b72dc01c1c701741ca3b581704079c1 (patch) | |
tree | 11a115fa7abb34a791f33e888d589ba480b77f40 /usr.bin/aucat/aucat.c | |
parent | 1c3f432b548443ddbc91a674e4e6855b3205ae73 (diff) |
polish the code: remove few unused #includes, add missing ones,
fix NULL vs 0, etc. No behaviour change.
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r-- | usr.bin/aucat/aucat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c index 37ef703d0d3..256e4291e32 100644 --- a/usr.bin/aucat/aucat.c +++ b/usr.bin/aucat/aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.103 2010/08/19 06:31:06 ratchov Exp $ */ +/* $OpenBSD: aucat.c,v 1.104 2010/08/20 06:56:54 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -30,7 +30,6 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <varargs.h> #include "abuf.h" #include "aparams.h" @@ -181,7 +180,7 @@ opt_mode(void) char *p = optarg; size_t len; - for (p = optarg; *p != NULL; p++) { + for (p = optarg; *p != '\0'; p++) { len = strcspn(p, ","); if (strncmp("play", p, len) == 0) { mode |= MODE_PLAY; |