libtimezonemap/0015-Make-all-private-functions-in-tz.c-static.patch

53 lines
1.6 KiB
Diff
Raw Normal View History

From cfab41ba625306ecf2ebd93340c6e5f27dec2e03 Mon Sep 17 00:00:00 2001
From: David Shea <dshea@redhat.com>
Date: Fri, 8 Apr 2016 10:37:52 -0400
Subject: [PATCH 15/24] Make all private functions in tz.c static
---
src/tz.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/tz.c b/src/tz.c
index 30f688d..7c216fa 100644
--- a/src/tz.c
+++ b/src/tz.c
@@ -40,7 +40,7 @@ static int compare_country_names (const void *a, const void *b);
static void sort_locations_by_country (GPtrArray *locations);
static const gchar * tz_data_file_get (const gchar *env, const gchar *defaultfile);
-void parse_file (const char * filename,
+static void parse_file (const char * filename,
const guint ncolumns,
GFunc func,
gpointer user_data)
@@ -65,7 +65,7 @@ void parse_file (const char * filename,
fclose (fh);
}
-void parse_admin1Codes (gpointer parsed_data,
+static void parse_admin1Codes (gpointer parsed_data,
gpointer user_data)
{
gchar ** parsed_data_v = (gchar **) parsed_data;
@@ -79,7 +79,7 @@ void parse_admin1Codes (gpointer parsed_data,
}
-void parse_countrycode (gpointer parsed_data,
+static void parse_countrycode (gpointer parsed_data,
gpointer user_data)
{
gchar ** parsed_data_v = (gchar **) parsed_data;
@@ -98,7 +98,7 @@ typedef struct Triple {
gpointer third;
} Triple;
-void parse_cities15000 (gpointer parsed_data,
+static void parse_cities15000 (gpointer parsed_data,
gpointer user_data)
{
gchar ** parsed_data_v = (gchar **) parsed_data;
--
2.5.5