mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
Fix compile warnings.
This commit is contained in:
parent
02ef657c41
commit
04e13e3a20
2 changed files with 3 additions and 3 deletions
|
@ -1687,7 +1687,7 @@ SwitcherMode run_switcher_window ( char **input, G_GNUC_UNUSED void *data )
|
|||
|
||||
static int run_dmenu ()
|
||||
{
|
||||
int ret_state = TRUE;
|
||||
int ret_state;
|
||||
textbox_setup (
|
||||
config.menu_bg, config.menu_fg,
|
||||
config.menu_hlbg,
|
||||
|
@ -1729,7 +1729,7 @@ static void run_switcher ( int do_fork, SwitcherMode mode )
|
|||
// Otherwise check if requested mode is enabled.
|
||||
if ( switchers[mode].cb != NULL ) {
|
||||
do {
|
||||
SwitcherMode retv = MODE_EXIT;
|
||||
SwitcherMode retv ;
|
||||
|
||||
retv = switchers[mode].cb ( &input, switchers[mode].cb_data );
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ ScriptOptions *script_switcher_parse_setup ( const char *str )
|
|||
if ( index == 2 ) {
|
||||
return sw;
|
||||
}
|
||||
fprintf ( stderr, "The script command '%s' has %d options, but needs 2: <name>:<script>.\n",
|
||||
fprintf ( stderr, "The script command '%s' has %u options, but needs 2: <name>:<script>.\n",
|
||||
str, index );
|
||||
script_switcher_free_options ( sw );
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue