mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove an unnecessary (and wrong) cast.
This commit is contained in:
parent
83c0952d1c
commit
4754552a07
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue