aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pppctl
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-12-17 00:26:58 +0000
committerBrian Somers <brian@FreeBSD.org>1997-12-17 00:26:58 +0000
commit4754552a07fefef27375edd3e840c25f97257872 (patch)
tree3a830e3422981c52d605347d616c5238df521114 /usr.sbin/pppctl
parent83c0952d1ce8d50697b4d1541165c7d6b1513665 (diff)
downloadsrc-4754552a07fefef27375edd3e840c25f97257872.tar.gz
src-4754552a07fefef27375edd3e840c25f97257872.zip
Remove an unnecessary (and wrong) cast.
Notes
Notes: svn path=/head/; revision=31792
Diffstat (limited to 'usr.sbin/pppctl')
-rw-r--r--usr.sbin/pppctl/pppctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pppctl/pppctl.c b/usr.sbin/pppctl/pppctl.c
index b6336ebae9fb..3eaaaebfe78c 100644
--- a/usr.sbin/pppctl/pppctl.c
+++ b/usr.sbin/pppctl/pppctl.c
@@ -1,5 +1,5 @@
/*
- * $Id$
+ * $Id: pppctl.c,v 1.10 1997/11/18 00:22:07 brian Exp $
*/
#include <sys/types.h>
@@ -240,7 +240,7 @@ main(int argc, char **argv)
hlen = strlen(host);
if (strspn(host, "0123456789.") == hlen) {
- if (!inet_aton(host, (struct in_addr *)&ifsin.sin_addr.s_addr)) {
+ if (!inet_aton(host, &ifsin.sin_addr)) {
fprintf(stderr, "Cannot translate %s\n", host);
return 1;
}