Change in libosmocore[master]: use_count.h: Fix API doc example

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

pespin gerrit-no-reply at lists.osmocom.org
Wed Jul 15 13:41:54 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/19279 )


Change subject: use_count.h: Fix API doc example
......................................................................

use_count.h: Fix API doc example

Change-Id: Ib28ea88c8e8e9b33d70d58156d03af9a41e9e012
---
M include/osmocom/core/use_count.h
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/79/19279/1

diff --git a/include/osmocom/core/use_count.h b/include/osmocom/core/use_count.h
index 6a4bf1f..a019525 100644
--- a/include/osmocom/core/use_count.h
+++ b/include/osmocom/core/use_count.h
@@ -130,8 +130,9 @@
  *     int foo_use_cb(struct osmo_use_count_entry *use_count_entry, int32_t old_use_count, const char *file, int line)
  *     {
  *             struct foo *foo = use_count_entry->use_count->talloc_object;
- *             if (osmo_use_count_total(&use_count_entry->use_count) == 0)
+ *             if (osmo_use_count_total(use_count_entry->use_count) == 0)
  *                     talloc_free(foo);
+ *             return 0;
  *     }
  *
  *     // The function name is a convenient use token:

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib28ea88c8e8e9b33d70d58156d03af9a41e9e012
Gerrit-Change-Number: 19279
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200715/6926e36a/attachment.htm>


More information about the gerrit-log mailing list