[gjs: 1/15] libgjs-private: Mark function as static




commit 2e2eca581f1564b67cb63fe6261d7c0e2ec884b4
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Jan 8 21:08:27 2022 -0800

    libgjs-private: Mark function as static
    
    This function is only used in this file, and not exported.

 libgjs-private/gjs-util.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgjs-private/gjs-util.c b/libgjs-private/gjs-util.c
index f656b6dbf..afae2988f 100644
--- a/libgjs-private/gjs-util.c
+++ b/libgjs-private/gjs-util.c
@@ -246,9 +246,10 @@ void gjs_list_store_sort(GListStore *store, GjsCompareDataFunc compare_func,
 static void* log_writer_user_data = NULL;
 static GDestroyNotify log_writer_user_data_free = NULL;
 
-GLogWriterOutput gjs_log_writer_func_wrapper(GLogLevelFlags log_level,
-                                             const GLogField* fields,
-                                             size_t n_fields, void* user_data) {
+static GLogWriterOutput gjs_log_writer_func_wrapper(GLogLevelFlags log_level,
+                                                    const GLogField* fields,
+                                                    size_t n_fields,
+                                                    void* user_data) {
     GjsGLogWriterFunc func = (GjsGLogWriterFunc)user_data;
     GVariantDict dict;
     g_variant_dict_init(&dict, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]