summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-07-09 09:01:35 +0200
committerDave Davenport <qball@gmpclient.org>2019-07-09 09:01:35 +0200
commiteece00bad67ad64ee33f8490fd56adc585dc484b (patch)
treefef02cde26ca00d54885b687a5527287dbb76e44
parent209fb9be18745d9fbf555837210ee9e300615b44 (diff)
[combi|script] Add static keyword to inline get_index.
-rw-r--r--source/dialogs/dmenu.c2
-rw-r--r--source/dialogs/script.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c
index 67a386b3..c66ceedc 100644
--- a/source/dialogs/dmenu.c
+++ b/source/dialogs/dmenu.c
@@ -241,7 +241,7 @@ static gchar * dmenu_format_output_string ( const DmenuModePrivateData *pd, cons
return retv ? retv : g_strdup ( "" );
}
-inline unsigned int get_index ( unsigned int length, int index )
+static inline unsigned int get_index ( unsigned int length, int index )
{
if ( index >= 0 ) return index;
if ( ((unsigned int)-index) <= length ) return (length+index);
diff --git a/source/dialogs/script.c b/source/dialogs/script.c
index df8fb0c6..6414b0d2 100644
--- a/source/dialogs/script.c
+++ b/source/dialogs/script.c
@@ -291,7 +291,7 @@ static void script_mode_destroy ( Mode *sw )
sw->private_data = NULL;
}
}
-inline unsigned int get_index ( unsigned int length, int index )
+static inline unsigned int get_index ( unsigned int length, int index )
{
if ( index >= 0 ) return index;
if ( ((unsigned int)-index) <= length ) return (length+index);