[PATCH] Use normal talloc instead of libosmocore copy

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/OpenBSC@lists.osmocom.org/.

Jan Engelhardt jengelh at inai.de
Tue Oct 14 12:15:29 UTC 2014


On Tuesday 2014-10-14 13:54, Max Suraev wrote:
>+++ b/src/bitvector.cpp
>@@ -27,7 +27,7 @@
> 
> #include <bitvector.h>
> extern "C" {
>-#include <osmocom/core/talloc.h>
>+#include <talloc.h>
> }

Mh, it would be better to avoid having #includes inside extern "C",
because you never really know what exactly header files contain.
Instead, each .h file wraps the C functions it has in a
#ifdef __cplusplus / extern "C" {} / #endif block of its own,
just like talloc.h does.





More information about the OpenBSC mailing list