From c9607bbc30f3a5ac835c4a90684575962d4be06b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 24 Jul 2013 13:47:59 +0200 Subject: [PATCH] src/ros.c: Use the "host" variable. Otherwise some compilers complain about an unused variable. Also it is much nicer to read. --- src/ros.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0