Skip to content

Commit 3570d19

Browse files
committed
fix the non INET6 lint build.
1 parent 860e2cf commit 3570d19

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/libc/net/getaddrinfo.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: getaddrinfo.c,v 1.127 2024/01/21 12:58:10 kre Exp $ */
1+
/* $NetBSD: getaddrinfo.c,v 1.128 2026/02/12 16:26:54 christos Exp $ */
22
/* $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $ */
33

44
/*
@@ -55,7 +55,7 @@
5555

5656
#include <sys/cdefs.h>
5757
#if defined(LIBC_SCCS) && !defined(lint)
58-
__RCSID("$NetBSD: getaddrinfo.c,v 1.127 2024/01/21 12:58:10 kre Exp $");
58+
__RCSID("$NetBSD: getaddrinfo.c,v 1.128 2026/02/12 16:26:54 christos Exp $");
5959
#endif /* LIBC_SCCS and not lint */
6060

6161
#ifndef RUMP_ACTION
@@ -789,6 +789,7 @@ get_addrselectpolicy(struct policyhead *head)
789789
free(buf);
790790
return 1;
791791
#else
792+
__USE(head);
792793
return 0;
793794
#endif
794795
}
@@ -867,6 +868,8 @@ match_addrselectpolicy(struct sockaddr *addr, struct policyhead *head)
867868

868869
return bestent;
869870
#else
871+
__USE(addr);
872+
__USE(head);
870873
return NULL;
871874
#endif
872875

0 commit comments

Comments
 (0)