diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-05-23 19:25:12 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2012-05-23 19:25:12 +0000 |
commit | 298f5ad9040c0b93ccd39f1e110caab2684070a4 (patch) | |
tree | d25cfab90de9052fd97269b828e99beabbe85cbc /usr.bin/aucat/miofile.c | |
parent | 6512e92d37b1b4f867171e80f8d8574b6f22912a (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/miofile.c')
-rw-r--r-- | usr.bin/aucat/miofile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/aucat/miofile.c b/usr.bin/aucat/miofile.c index 6238bbb5065..3acdc2eb2b7 100644 --- a/usr.bin/aucat/miofile.c +++ b/usr.bin/aucat/miofile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: miofile.c,v 1.7 2012/04/11 06:05:43 ratchov Exp $ */ +/* $OpenBSD: miofile.c,v 1.8 2012/05/23 19:25:11 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -64,12 +64,10 @@ struct fileops miofile_ops = { struct miofile * miofile_new(struct fileops *ops, char *path, unsigned int mode) { - char *siopath; struct mio_hdl *hdl; struct miofile *f; - siopath = (strcmp(path, "default") == 0) ? NULL : path; - hdl = mio_open(siopath, mode, 1); + hdl = mio_open(path, mode, 1); if (hdl == NULL) return NULL; f = (struct miofile *)file_new(ops, path, mio_nfds(hdl)); |