summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/sock.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-11-16 17:08:33 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-11-16 17:08:33 +0000
commitadf137d07cef0a4d61bb4dc637365c1da3199778 (patch)
tree187003da6cb8ef8c910918c4fd38c7f2055228a3 /usr.bin/aucat/sock.c
parent7e845d6f68f34df6287641928d5e8f60fcee674c (diff)
make aucat compile without DEBUG defined (still defined by default)
Diffstat (limited to 'usr.bin/aucat/sock.c')
-rw-r--r--usr.bin/aucat/sock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c
index 50d0fe398a5..06d32b69017 100644
--- a/usr.bin/aucat/sock.c
+++ b/usr.bin/aucat/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.4 2008/11/16 16:30:22 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.5 2008/11/16 17:08:32 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -662,6 +662,7 @@ sock_setpar(struct sock *f)
f->bufsz -= f->bufsz % f->round;
DPRINTF("sock_setpar: bufsz -> %u\n", f->bufsz);
}
+#ifdef DEBUG
if (debug_level > 0) {
fprintf(stderr, "sock_setpar: %p: rpar=", f);
aparams_print(&f->rpar);
@@ -669,6 +670,7 @@ sock_setpar(struct sock *f)
aparams_print(&f->wpar);
fprintf(stderr, ", mode=%u, bufsz=%u\n", f->mode, f->bufsz);
}
+#endif
return 1;
}