mirror of
https://github.com/davatorium/rofi.git
synced 2025-03-03 16:05:20 -05:00
[combi|script] Add static keyword to inline get_index.
This commit is contained in:
parent
209fb9be18
commit
eece00bad6
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue