Change in libosmocore[master]: macaddr: fix osmo_get_macaddr(): return -1 if no device is found

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Aug 27 08:11:00 UTC 2020


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

Change subject: macaddr: fix osmo_get_macaddr(): return -1 if no device is found
......................................................................

macaddr: fix osmo_get_macaddr(): return -1 if no device is found

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

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



diff --git a/src/macaddr.c b/src/macaddr.c
index de9d07a..a9138f8 100644
--- a/src/macaddr.c
+++ b/src/macaddr.c
@@ -102,7 +102,7 @@
 	}
 
 	freeifaddrs(ifaddr);
-	return 0;
+	return rc;
 }
 
 #else

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I74d33159485ec1f7f09b444621a2d1941c3dd4db
Gerrit-Change-Number: 19840
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy 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/20200827/8c60c7e5/attachment.htm>


More information about the gerrit-log mailing list