[libgepub] lib: Make private functions static



commit 7f48731aa8351784a7e3f500e0ab7401c957292b
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 21 16:48:56 2017 +0200

    lib: Make private functions static
    
    Fixes "no previous prototype for ..." warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784050

 libgepub/gepub-utils.c |    2 +-
 tests/test-gepub.c     |   22 +++++++++++-----------
 2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/libgepub/gepub-utils.c b/libgepub/gepub-utils.c
index c380848..a409f51 100644
--- a/libgepub/gepub-utils.c
+++ b/libgepub/gepub-utils.c
@@ -67,7 +67,7 @@ set_epub_uri (xmlNode *node, const gchar *path, const gchar *tagname, const gcha
     soup_uri_free (baseURI);
 }
 
-gboolean
+static gboolean
 gepub_utils_has_parent_tag (xmlNode *node, gchar *name, ...)
 {
     va_list ap;
diff --git a/tests/test-gepub.c b/tests/test-gepub.c
index 9bef651..f3539f8 100644
--- a/tests/test-gepub.c
+++ b/tests/test-gepub.c
@@ -28,7 +28,7 @@ reload_current_chapter (GepubWidget *widget)
     g_free (txt);
 }
 
-void
+static void
 update_text (GepubDoc *doc)
 {
     GList *l, *chunks;
@@ -61,7 +61,7 @@ update_text (GepubDoc *doc)
     }
 }
 
-void
+static void
 print_replaced_text (GepubDoc *doc)
 {
     GBytes *content;
@@ -74,7 +74,7 @@ print_replaced_text (GepubDoc *doc)
     g_bytes_unref (content);
 }
 
-void
+static void
 button_pressed (GtkButton *button, GepubWidget *widget)
 {
     GepubDoc *doc = gepub_widget_get_doc (widget);
@@ -118,7 +118,7 @@ button_pressed (GtkButton *button, GepubWidget *widget)
     //print_replaced_text (doc);
 }
 
-void
+static void
 test_open (const char *path)
 {
     GepubArchive *a;
@@ -146,7 +146,7 @@ test_open (const char *path)
     g_object_unref (a);
 }
 
-void
+static void
 find_xhtml (gchar *key, GepubResource *value, gpointer data)
 {
     guchar **d = (guchar **)data;
@@ -155,7 +155,7 @@ find_xhtml (gchar *key, GepubResource *value, gpointer data)
     }
 }
 
-void
+static void
 test_read (const char *path)
 {
     GepubArchive *a;
@@ -189,7 +189,7 @@ test_read (const char *path)
     g_object_unref (a);
 }
 
-void
+static void
 test_root_file (const char *path)
 {
     GepubArchive *a;
@@ -205,7 +205,7 @@ test_root_file (const char *path)
     g_object_unref (a);
 }
 
-void
+static void
 test_doc_name (const char *path)
 {
     GepubDoc *doc = gepub_doc_new (path);
@@ -234,13 +234,13 @@ test_doc_name (const char *path)
     g_object_unref (G_OBJECT (doc));
 }
 
-void
+static void
 pk (gchar *key, GepubResource *value, gpointer data)
 {
     PTEST ("%s: %s, %s\n", key, value->mime, value->uri);
 }
 
-void
+static void
 test_doc_resources (const char *path)
 {
     GepubDoc *doc;
@@ -261,7 +261,7 @@ test_doc_resources (const char *path)
     g_object_unref (G_OBJECT (doc));
 }
 
-void
+static void
 test_doc_spine (const char *path)
 {
     GepubDoc *doc = gepub_doc_new (path);


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