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

laforge gerrit-no-reply at lists.osmocom.org
Wed Jul 15 19:51:22 UTC 2020


laforge has submitted this change. ( 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(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



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: 2
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
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/20200715/377f8db9/attachment.htm>


More information about the gerrit-log mailing list