summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2021-11-01 20:54:55 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2021-11-23 23:04:26 +0000
commit3da41e13054dfe162dfa3a3ff750009f4aba745f (patch)
tree8a933cc93b7ffa86115d1642eddb0be25bdec36b
parentd81cad5ec57edb38f23b358c83e598c1609029a2 (diff)
downloadgobject-introspection-3da41e13054dfe162dfa3a3ff750009f4aba745f.tar.gz
Fix styling issues from suggestions
-rw-r--r--girepository/girffi.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/girepository/girffi.c b/girepository/girffi.c
index 4cf139d0..5bf97437 100644
--- a/girepository/girffi.c
+++ b/girepository/girffi.c
@@ -362,7 +362,7 @@ typedef struct {
* Prepares a callback for ffi invocation.
*
* Returns: the ffi_closure or NULL on error. The return value
- * should be freed by calling g_callable_info_destroy_closure().
+ * should be freed by calling g_callable_info_destroy_closure().
*/
ffi_closure *
g_callable_info_create_closure (GICallableInfo *callable_info,
@@ -453,8 +453,8 @@ g_callable_info_destroy_closure (GICallableInfo *callable_info,
*
* Prepares a callback for ffi invocation. Deprecated
*
- * Returns: the native address of the closre or NULL on error. The return value
- * should be freed by calling g_callable_info_free_closure().
+ * Returns: the native address of the closure or `NULL` on error. The return value
+ * should be freed by calling g_callable_info_free_closure().
*/
ffi_closure *
g_callable_info_prepare_closure (GICallableInfo *callable_info,
@@ -464,7 +464,7 @@ g_callable_info_prepare_closure (GICallableInfo *callable_info,
{
ffi_closure * closure;
- closure = g_callable_info_create_closure(callable_info, cif, callback, user_data);
+ closure = g_callable_info_create_closure (callable_info, cif, callback, user_data);
if (!closure)
{
return NULL;
@@ -491,7 +491,9 @@ g_callable_info_prepare_closure (GICallableInfo *callable_info,
* which may cause a segfault because the native address is returned instead
* of the closure address.
*/
-void g_callable_info_free_closure (GICallableInfo *callable_info, ffi_closure *closure)
+void
+g_callable_info_free_closure (GICallableInfo *callable_info,
+ ffi_closure *closure)
{
g_warning ("g_callable_info_free_closure is deprecated and leaks memory\n");
#ifdef LEGACY_GIRFFI_FREE