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
Fri Sep 18 20:35:05 UTC 2020


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



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/09/20209/1

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: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200918/b9d28f0d/attachment.htm>


More information about the gerrit-log mailing list