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
Fri Aug 28 17:47:55 UTC 2020


pespin has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/84/19884/1

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: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200828/56618f4b/attachment.htm>


More information about the gerrit-log mailing list