[PATCH] libosmocore[master]: src/msgb.c: mark *tall_msgb_ctx as static

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

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Mar 8 19:39:37 UTC 2018


Review at  https://gerrit.osmocom.org/7163

src/msgb.c: mark *tall_msgb_ctx as static

There is no need to expose the internal root talloc context.
A pointer to it can be obtained by calling msgb_talloc_ctx_init().

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


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/63/7163/1

diff --git a/src/msgb.c b/src/msgb.c
index 9efaea5..f79a634 100644
--- a/src/msgb.c
+++ b/src/msgb.c
@@ -63,7 +63,7 @@
 #include <osmocom/core/msgb.h>
 #include <osmocom/core/talloc.h>
 
-void *tall_msgb_ctx = NULL;
+static void *tall_msgb_ctx = NULL;
 
 /*! Allocate a new message buffer
  * \param[in] size Length in octets, including headroom

-- 
To view, visit https://gerrit.osmocom.org/7163
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I45b25e1bb762e7d4a271f76c6e7c8616fe98efe4
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list