Remove an unnecessary (and wrong) cast.
This commit is contained in:
parent
83c0952d1c
commit
4754552a07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31792
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user