diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2015-11-24 12:14:09 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2015-11-24 12:14:09 +0000 |
commit | a080a794a7ed95b64d6483957d845c4dc36ed419 (patch) | |
tree | 4b9c41aa76c95a49ad806b7f5a327200278aae96 /usr.bin | |
parent | fab09b0187aecb4ecb7d75be91b48ebe7bdf73de (diff) |
remove unused test when handling of -U option
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sndiod/sndiod.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/sndiod/sndiod.c b/usr.bin/sndiod/sndiod.c index e37516e60cc..714e34682a8 100644 --- a/usr.bin/sndiod/sndiod.c +++ b/usr.bin/sndiod/sndiod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sndiod.c,v 1.15 2015/11/23 12:33:20 ratchov Exp $ */ +/* $OpenBSD: sndiod.c,v 1.16 2015/11/24 12:14:08 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org> * @@ -377,8 +377,6 @@ main(int argc, char **argv) background = 0; break; case 'U': - if (listen_list) - errx(1, "-U must come before -L"); unit = strtonum(optarg, 0, 15, &str); if (str) errx(1, "%s: unit number is %s", optarg, str); @@ -470,7 +468,7 @@ main(int argc, char **argv) listen_new_un(path); if (tcpaddr) { #ifdef USE_TCP - listen_new_tcp(optarg, AUCAT_PORT + unit); + listen_new_tcp(tcpaddr, AUCAT_PORT + unit); #else errx(1, "-L option disabled at compilation time"); #endif |