projects
/
routeros-api.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba77bd4
)
src/ros.c: Use the "host" variable.
author
Florian Forster
<ff@octo.it>
Wed, 24 Jul 2013 11:47:59 +0000
(13:47 +0200)
committer
Florian Forster
<ff@octo.it>
Wed, 24 Jul 2013 11:48:02 +0000
(13:48 +0200)
Otherwise some compilers complain about an unused variable. Also it is
much nicer to read.
src/ros.c
patch
|
blob
|
history
diff --git
a/src/ros.c
b/src/ros.c
index
1d638b6
..
31aafa8
100644
(file)
--- 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)