Change in libosmocore[master]: socket: Use AF_UNSPEC instead of PF_UNSPEC calling getaddrinfo

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Aug 31 08:50:43 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/19884 )

Change subject: socket: Use AF_UNSPEC instead of PF_UNSPEC calling getaddrinfo
......................................................................

socket: Use AF_UNSPEC instead of PF_UNSPEC calling getaddrinfo

man getaddrinfo entry doesn't mention PF_UNSPEC, but AF_UNSPEC.

Change-Id: Icab676ff7ee9d813d7b7fe807fbe172512f5e397
---
M src/socket.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/socket.c b/src/socket.c
index e88af16..62a5846 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -1419,7 +1419,7 @@
 
 	/* Find out the address family (AF_INET or AF_INET6?) */
 	memset(&addrinfo_hint, '\0', sizeof(addrinfo_hint));
-	addrinfo_hint.ai_family = PF_UNSPEC;
+	addrinfo_hint.ai_family = AF_UNSPEC;
 	addrinfo_hint.ai_flags = AI_NUMERICHOST;
 	rc = getaddrinfo(remote_ip, NULL, &addrinfo_hint, &addrinfo);
 	if (rc)

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/19884
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Icab676ff7ee9d813d7b7fe807fbe172512f5e397
Gerrit-Change-Number: 19884
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200831/af2cb31d/attachment.htm>


More information about the gerrit-log mailing list