summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/aucat.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-23 19:25:12 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2012-05-23 19:25:12 +0000
commit298f5ad9040c0b93ccd39f1e110caab2684070a4 (patch)
treed25cfab90de9052fd97269b828e99beabbe85cbc /usr.bin/aucat/aucat.c
parent6512e92d37b1b4f867171e80f8d8574b6f22912a (diff)
Make the "default" string a valid device name that has the same effect
as NULL has. This will (hopefully) simplify ports where the user passes the device string.
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r--usr.bin/aucat/aucat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 1412980c4a1..82fff7b408b 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.134 2012/04/11 06:05:43 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.135 2012/05/23 19:25:11 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -26,6 +26,7 @@
#include <limits.h>
#include <pwd.h>
#include <signal.h>
+#include <sndio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -349,7 +350,7 @@ mkdev(char *path, int mode, int bufsz, int round, int hold, int autovol)
} else {
if (dev_list)
return dev_list;
- path = "default";
+ path = SIO_DEVANY;
}
if (!bufsz && !round) {
round = DEFAULT_ROUND;