1
0
Fork 0
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:
Dave Davenport 2014-08-24 15:21:35 +02:00
parent 02ef657c41
commit 04e13e3a20
2 changed files with 3 additions and 3 deletions

View file

@ -1687,7 +1687,7 @@ SwitcherMode run_switcher_window ( char **input, G_GNUC_UNUSED void *data )
static int run_dmenu () static int run_dmenu ()
{ {
int ret_state = TRUE; int ret_state;
textbox_setup ( textbox_setup (
config.menu_bg, config.menu_fg, config.menu_bg, config.menu_fg,
config.menu_hlbg, config.menu_hlbg,
@ -1729,7 +1729,7 @@ static void run_switcher ( int do_fork, SwitcherMode mode )
// Otherwise check if requested mode is enabled. // Otherwise check if requested mode is enabled.
if ( switchers[mode].cb != NULL ) { if ( switchers[mode].cb != NULL ) {
do { do {
SwitcherMode retv = MODE_EXIT; SwitcherMode retv ;
retv = switchers[mode].cb ( &input, switchers[mode].cb_data ); retv = switchers[mode].cb ( &input, switchers[mode].cb_data );

View file

@ -186,7 +186,7 @@ ScriptOptions *script_switcher_parse_setup ( const char *str )
if ( index == 2 ) { if ( index == 2 ) {
return sw; 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 ); str, index );
script_switcher_free_options ( sw ); script_switcher_free_options ( sw );
return NULL; return NULL;