Change in libosmocore[master]: ns2: Use NULL and not '0' when returning a NULL-Pointer

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
Sun Sep 20 09:43:30 UTC 2020


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

Change subject: ns2: Use NULL and not '0' when returning a NULL-Pointer
......................................................................

ns2: Use NULL and not '0' when returning a NULL-Pointer

Change-Id: I9458e6dcf8133fbcfbc89437e58aad049a6d432b
---
M src/gb/gprs_ns2.c
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 21a45a1..57a08d1 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -216,7 +216,7 @@
 	struct osmo_sockaddr_str remote_str;
 
 	if (!buf_len)
-		return 0;
+		return NULL;
 
 	switch (nsvc->ll) {
 	case GPRS_NS_LL_UDP:

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I9458e6dcf8133fbcfbc89437e58aad049a6d432b
Gerrit-Change-Number: 20209
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
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/20200920/e067c697/attachment.htm>


More information about the gerrit-log mailing list