=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/audioctl/audioctl.c,v retrieving revision 1.24 retrieving revision 1.25 diff -c -r1.24 -r1.25 *** src/usr.bin/audioctl/audioctl.c 2014/09/23 06:47:37 1.24 --- src/usr.bin/audioctl/audioctl.c 2015/02/08 23:40:34 1.25 *************** *** 1,4 **** ! /* $OpenBSD: audioctl.c,v 1.24 2014/09/23 06:47:37 ratchov Exp $ */ /* $NetBSD: audioctl.c,v 1.14 1998/04/27 16:55:23 augustss Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: audioctl.c,v 1.25 2015/02/08 23:40:34 deraadt Exp $ */ /* $NetBSD: audioctl.c,v 1.14 1998/04/27 16:55:23 augustss Exp $ */ /* *************** *** 344,350 **** while ((ch = getopt(argc, argv, "af:nw")) != -1) { switch (ch) { case 'a': ! aflag++; break; case 'w': /* backward compatibility */ --- 344,350 ---- while ((ch = getopt(argc, argv, "af:nw")) != -1) { switch (ch) { case 'a': ! aflag = 1; break; case 'w': /* backward compatibility */ *************** *** 363,369 **** argv += optind; if (argc == 0) ! aflag++; if ((fd = open(file, O_RDWR)) < 0) { if ((fd = open(file, O_RDONLY)) < 0) --- 363,369 ---- argv += optind; if (argc == 0) ! aflag = 1; if ((fd = open(file, O_RDWR)) < 0) { if ((fd = open(file, O_RDONLY)) < 0)