svn commit: r211224 - projects/sv/usr.sbin/netdumpsrv
Attilio Rao
attilio at FreeBSD.org
Thu Aug 12 15:12:20 UTC 2010
Author: attilio
Date: Thu Aug 12 15:12:20 2010
New Revision: 211224
URL: http://svn.freebsd.org/changeset/base/211224
Log:
Remove occurrences of addr2ascii. Just one is left on questionable code
that might be stripped away in any case.
Modified:
projects/sv/usr.sbin/netdumpsrv/netdump_server.c
Modified: projects/sv/usr.sbin/netdumpsrv/netdump_server.c
==============================================================================
--- projects/sv/usr.sbin/netdumpsrv/netdump_server.c Thu Aug 12 15:05:41 2010 (r211223)
+++ projects/sv/usr.sbin/netdumpsrv/netdump_server.c Thu Aug 12 15:12:20 2010 (r211224)
@@ -503,8 +503,7 @@ int receive_message(int sock, struct soc
return -1;
}
- snprintf(fromstr, fromstrlen, "%s:%hu",
- addr2ascii(AF_INET, &from->sin_addr, sizeof(from->sin_addr), NULL),
+ snprintf(fromstr, fromstrlen, "%s:%hu", inet_aton(from->sin_addr),
ntohs(from->sin_port));
if ((size_t)len < sizeof(struct netdump_msg_hdr))
@@ -756,9 +755,7 @@ int main(int argc, char **argv)
fputs("Invalid bind IP specified\n", stderr);
return 1;
}
- printf("Listening on IP %s\n",
- addr2ascii(AF_INET, &bindip,
- sizeof(bindip), NULL));
+ printf("Listening on IP %s\n", inet_aton(bindip));
break;
case 2:
bindip.s_addr = INADDR_ANY;
More information about the svn-src-projects
mailing list