tidy-up: replace (1 != expressions 2

This commit is contained in:
Viktor Szakats 2025-07-09 19:38:47 +02:00
parent 3b75d69dbb
commit 4034bc7ebf
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 7 additions and 7 deletions

View file

@ -155,7 +155,7 @@ static struct ip *ip_list_append(struct ip *list, const char *data)
ip->maskbits = 128;
#endif
if(1 != inet_pton(ip->family, ip->str, &ip->netaddr)) {
if(inet_pton(ip->family, ip->str, &ip->netaddr) != 1) {
free(ip->str);
free(ip);
return NULL;