Warnings cleanup

This commit is contained in:
z3APA3A committed 2016-02-18 16:43:37 +03:00
1 parent 0d02989cce
commit 43a36ec813
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ static void pr_sa(struct node *node, CBFUNC cbf, void*cb){
buf[0] = '[';
buf[1] = 0;
inet_ntop(*SAFAMILY(node->value), node->value, buf+1, sizeof(buf)-10);
sprintf(buf + strlen(buf), "]:hu", (unsigned short)*SAPORT(node->value));
sprintf(buf + strlen(buf), "]:%hu", (unsigned short)*SAPORT(node->value));
if(node->value)(*cbf)(cb, buf, strlen(buf));
#endif
}