mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Tiny cleanup.
This commit is contained in:
parent
7322819a1d
commit
19e849d4e7
2 changed files with 4 additions and 4 deletions
|
@ -120,7 +120,7 @@ static int switcher_get ( const char *name )
|
|||
return -1;
|
||||
}
|
||||
|
||||
void catch_exit ( __attribute__( ( unused ) ) int sig )
|
||||
void catch_exit ( G_GNUC_UNUSED int sig )
|
||||
{
|
||||
while ( 0 < waitpid ( -1, NULL, WNOHANG ) ) {
|
||||
;
|
||||
|
|
|
@ -45,7 +45,7 @@ typedef struct
|
|||
char ** str;
|
||||
void *pointer;
|
||||
char * charc;
|
||||
} value;
|
||||
} value;
|
||||
char *mem;
|
||||
} XrmOption;
|
||||
/**
|
||||
|
@ -115,8 +115,8 @@ void config_parser_add_option ( XrmOptionType type, const char *key, void **valu
|
|||
{
|
||||
extra_options = g_realloc ( extra_options, ( num_extra_options + 1 ) * sizeof ( XrmOption ) );
|
||||
|
||||
extra_options[num_extra_options].type = type;
|
||||
extra_options[num_extra_options].name = key;
|
||||
extra_options[num_extra_options].type = type;
|
||||
extra_options[num_extra_options].name = key;
|
||||
extra_options[num_extra_options].value.pointer = value;
|
||||
if ( type == xrm_String ) {
|
||||
extra_options[num_extra_options].mem = ( (char *) ( *value ) );
|
||||
|
|
Loading…
Reference in a new issue