svn commit: r211227 - projects/sv/usr.sbin/netdumpsrv
Attilio Rao
attilio at FreeBSD.org
Thu Aug 12 15:46:16 UTC 2010
Author: attilio
Date: Thu Aug 12 15:46:15 2010
New Revision: 211227
URL: http://svn.freebsd.org/changeset/base/211227
Log:
More ntoa/aton cleanups.
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:29:07 2010 (r211226)
+++ projects/sv/usr.sbin/netdumpsrv/netdump_server.c Thu Aug 12 15:46:15 2010 (r211227)
@@ -749,13 +749,13 @@ int main(int argc, char **argv)
return 1;
}
case 3:
- if (ascii2addr(AF_INET, argv[2], &bindip) == -1)
+ if (!inet_aton(argv[2], &bindip))
{
pidfile_remove(pfh);
fputs("Invalid bind IP specified\n", stderr);
return 1;
}
- printf("Listening on IP %s\n", inet_ntoa(bindip));
+ printf("Listening on IP %s\n", argv[2]);
break;
case 2:
bindip.s_addr = INADDR_ANY;
More information about the svn-src-projects
mailing list