From: Florian Forster Date: Wed, 24 Jul 2013 11:47:59 +0000 (+0200) Subject: src/ros.c: Use the "host" variable. X-Git-Url: https://git.octo.it/?p=routeros-api.git;a=commitdiff_plain;h=c9607bbc30f3a5ac835c4a90684575962d4be06b src/ros.c: Use the "host" variable. Otherwise some compilers complain about an unused variable. Also it is much nicer to read. --- diff --git a/src/ros.c b/src/ros.c index 1d638b6..31aafa8 100644 --- a/src/ros.c +++ b/src/ros.c @@ -329,7 +329,7 @@ int main (int argc, char **argv) /* {{{ */ if (passwd == NULL) exit (EXIT_FAILURE); - c = ros_connect (argv[optind], ROUTEROS_API_PORT, + c = ros_connect (host, ROUTEROS_API_PORT, opt_username, passwd); memset (passwd, 0, strlen (passwd)); if (c == NULL)