diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-02-28 12:34:36 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-02-28 12:34:36 +0000 |
commit | befd2776bcd10e6342f83eb6f3f5f2e08b806dbc (patch) | |
tree | 20f39c0182a08595d2596a7be85e56a04821166a | |
parent | afa3ccc3b1b3995d2e09588929a927558c719542 (diff) | |
download | mpd-befd2776bcd10e6342f83eb6f3f5f2e08b806dbc.tar.gz mpd-befd2776bcd10e6342f83eb6f3f5f2e08b806dbc.tar.xz mpd-befd2776bcd10e6342f83eb6f3f5f2e08b806dbc.zip |
Removing a useless block.
git-svn-id: https://svn.musicpd.org/mpd/trunk@5460 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/listen.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/listen.c b/src/listen.c index df50c2493..479b9acd4 100644 --- a/src/listen.c +++ b/src/listen.c @@ -196,19 +196,16 @@ void listenOnPort(void) { int port = DEFAULT_PORT; ConfigParam *param = getNextConfigParam(CONF_BIND_TO_ADDRESS, NULL); - - { - ConfigParam *portParam = getConfigParam(CONF_PORT); - - if (portParam) { - char *test; - port = strtol(portParam->value, &test, 10); - if (port <= 0 || *test != '\0') { - ERROR("%s \"%s\" specified at line %i is not a " - "positive integer", CONF_PORT, - portParam->value, portParam->line); - exit(EXIT_FAILURE); - } + ConfigParam *portParam = getConfigParam(CONF_PORT); + + if (portParam) { + char *test; + port = strtol(portParam->value, &test, 10); + if (port <= 0 || *test != '\0') { + ERROR("%s \"%s\" specified at line %i is not a " + "positive integer", CONF_PORT, + portParam->value, portParam->line); + exit(EXIT_FAILURE); } } |