=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/Attic/sock.c,v retrieving revision 1.60 retrieving revision 1.61 diff -u -r1.60 -r1.61 --- src/usr.bin/aucat/Attic/sock.c 2011/06/03 16:22:34 1.60 +++ src/usr.bin/aucat/Attic/sock.c 2011/11/15 08:05:22 1.61 @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.c,v 1.60 2011/06/03 16:22:34 ratchov Exp $ */ +/* $OpenBSD: sock.c,v 1.61 2011/11/15 08:05:22 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -1033,9 +1033,19 @@ #endif return 0; } - f->opt = opt_byname(p->opt); + f->opt = opt_byname(p->opt, AMSG_ISSET(p->devnum) ? p->devnum : 0); if (f->opt == NULL) return 0; +#ifdef DEBUG + if (debug_level >= 3) { + sock_dbg(f); + dbg_puts(": using "); + dev_dbg(f->opt->dev); + dbg_puts("."); + dbg_puts(f->opt->name); + dbg_puts("\n"); + } +#endif if (!dev_ref(f->opt->dev)) return 0; if ((mode & MODE_REC) && (f->opt->mode & MODE_MON)) {