diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-11-05 16:09:51 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-11-05 16:09:51 +0000 |
commit | 26d8b39f119cc8644f044a18eb54fc449c46bdd6 (patch) | |
tree | 4c9173f9a9eafbce5118092d8f3f04378d530de1 /usr.bin/aucat | |
parent | a4cf6dd9e225eefd73bc089270b8eaa04f2a2b19 (diff) |
unbreak compilation without DEBUG defined
Diffstat (limited to 'usr.bin/aucat')
-rw-r--r-- | usr.bin/aucat/aucat.c | 6 | ||||
-rw-r--r-- | usr.bin/aucat/file.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c index a2c9c90e345..38d60de4c38 100644 --- a/usr.bin/aucat/aucat.c +++ b/usr.bin/aucat/aucat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aucat.c,v 1.106 2010/10/21 18:57:42 ratchov Exp $ */ +/* $OpenBSD: aucat.c,v 1.107 2010/11/05 16:09:50 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -765,8 +765,10 @@ aucat_main(int argc, char **argv) if (geteuid() == 0) privdrop(); if (l_flag) { +#ifdef DEBUG debug_level = 0; dbg_flush(); +#endif if (daemon(0, 0) < 0) err(1, "daemon"); } @@ -1033,8 +1035,10 @@ midicat_main(int argc, char **argv) if (geteuid() == 0) privdrop(); if (l_flag) { +#ifdef DEBUG debug_level = 0; dbg_flush(); +#endif if (daemon(0, 0) < 0) err(1, "daemon"); } diff --git a/usr.bin/aucat/file.c b/usr.bin/aucat/file.c index d19a6685e38..e96d9eecea7 100644 --- a/usr.bin/aucat/file.c +++ b/usr.bin/aucat/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.22 2010/08/20 06:56:54 ratchov Exp $ */ +/* $OpenBSD: file.c,v 1.23 2010/11/05 16:09:50 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -249,7 +249,9 @@ file_new(struct fileops *ops, char *name, unsigned nfds) f->ops = ops; f->name = name; f->state = 0; +#ifdef DEBUG f->cycles = 0; +#endif f->rproc = NULL; f->wproc = NULL; LIST_INSERT_HEAD(&file_list, f, entry); |