=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/miofile.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/aucat/Attic/miofile.c 2010/06/04 06:15:28 1.5 +++ src/usr.bin/aucat/Attic/miofile.c 2011/06/20 20:18:44 1.6 @@ -1,4 +1,4 @@ -/* $OpenBSD: miofile.c,v 1.5 2010/06/04 06:15:28 ratchov Exp $ */ +/* $OpenBSD: miofile.c,v 1.6 2011/06/20 20:18:44 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -62,18 +62,13 @@ * open the device */ struct miofile * -miofile_new(struct fileops *ops, char *path, int input, int output) +miofile_new(struct fileops *ops, char *path, unsigned mode) { char *siopath; struct mio_hdl *hdl; struct miofile *f; - int mode = 0; siopath = (strcmp(path, "default") == 0) ? NULL : path; - if (input) - mode |= MIO_IN; - if (output) - mode |= MIO_OUT; hdl = mio_open(siopath, mode, 1); if (hdl == NULL) return NULL;