Fix styling issues from suggestions

This commit is contained in:
Emmanuele Bassi 2021-11-01 20:54:55 +00:00 committed by Emmanuele Bassi
parent f77269c480
commit b03c3d0a16

View File

@ -453,7 +453,7 @@ g_callable_info_destroy_closure (GICallableInfo *callable_info,
* *
* Prepares a callback for ffi invocation. Deprecated * Prepares a callback for ffi invocation. Deprecated
* *
* Returns: the native address of the closre or NULL on error. The return value * Returns: the native address of the closure or `NULL` on error. The return value
* should be freed by calling g_callable_info_free_closure(). * should be freed by calling g_callable_info_free_closure().
*/ */
ffi_closure * ffi_closure *
@ -464,7 +464,7 @@ g_callable_info_prepare_closure (GICallableInfo *callable_info,
{ {
ffi_closure * closure; 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) if (!closure)
{ {
return NULL; 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 * which may cause a segfault because the native address is returned instead
* of the closure address. * 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"); g_warning ("g_callable_info_free_closure is deprecated and leaks memory\n");
#ifdef LEGACY_GIRFFI_FREE #ifdef LEGACY_GIRFFI_FREE