Otherwise some compilers complain about an unused variable. Also it is
much nicer to read.
if (passwd == NULL)
exit (EXIT_FAILURE);
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)
opt_username, passwd);
memset (passwd, 0, strlen (passwd));
if (c == NULL)