Added casts to silent compiler warnings.

This commit is contained in:
Guenter Knauf 2011-09-10 16:38:51 +02:00
parent b5cd8fe120
commit 46792a9fca

View File

@ -225,7 +225,7 @@ int main(int argc, char *argv[])
"<capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>" "<capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>"
"</capabilities>" "</capabilities>"
"</hello>\n" "</hello>\n"
"]]>]]>\n%n", &len); "]]>]]>\n%n", (int *)&len);
if (-1 == netconf_write(channel, buf, len)) if (-1 == netconf_write(channel, buf, len))
goto shutdown; goto shutdown;
@ -234,7 +234,7 @@ int main(int argc, char *argv[])
if (-1 == len) if (-1 == len)
goto shutdown; goto shutdown;
printf("Got %d bytes:\n----------------------\n%s", len, buf); printf("Got %d bytes:\n----------------------\n%s", (int)len, buf);
printf("Sending NETCONF <rpc>\n"); printf("Sending NETCONF <rpc>\n");
snprintf(buf, sizeof(buf), snprintf(buf, sizeof(buf),
@ -242,7 +242,7 @@ int main(int argc, char *argv[])
"<rpc xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">" "<rpc xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\">"
"<get-interface-information><terse/></get-interface-information>" "<get-interface-information><terse/></get-interface-information>"
"</rpc>\n" "</rpc>\n"
"]]>]]>\n%n", &len); "]]>]]>\n%n", (int *)&len);
if (-1 == netconf_write(channel, buf, len)) if (-1 == netconf_write(channel, buf, len))
goto shutdown; goto shutdown;
@ -251,7 +251,7 @@ int main(int argc, char *argv[])
if (-1 == len) if (-1 == len)
goto shutdown; goto shutdown;
printf("Got %d bytes:\n----------------------\n%s", len, buf); printf("Got %d bytes:\n----------------------\n%s", (int)len, buf);
shutdown: shutdown:
if (channel) if (channel)