mirror of https://github.com/davatorium/rofi.git
Tiny cleanup.
This commit is contained in:
parent
7322819a1d
commit
19e849d4e7
|
@ -120,7 +120,7 @@ static int switcher_get ( const char *name )
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void catch_exit ( __attribute__( ( unused ) ) int sig )
|
void catch_exit ( G_GNUC_UNUSED int sig )
|
||||||
{
|
{
|
||||||
while ( 0 < waitpid ( -1, NULL, WNOHANG ) ) {
|
while ( 0 < waitpid ( -1, NULL, WNOHANG ) ) {
|
||||||
;
|
;
|
||||||
|
|
|
@ -45,7 +45,7 @@ typedef struct
|
||||||
char ** str;
|
char ** str;
|
||||||
void *pointer;
|
void *pointer;
|
||||||
char * charc;
|
char * charc;
|
||||||
} value;
|
} value;
|
||||||
char *mem;
|
char *mem;
|
||||||
} XrmOption;
|
} 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 = g_realloc ( extra_options, ( num_extra_options + 1 ) * sizeof ( XrmOption ) );
|
||||||
|
|
||||||
extra_options[num_extra_options].type = type;
|
extra_options[num_extra_options].type = type;
|
||||||
extra_options[num_extra_options].name = key;
|
extra_options[num_extra_options].name = key;
|
||||||
extra_options[num_extra_options].value.pointer = value;
|
extra_options[num_extra_options].value.pointer = value;
|
||||||
if ( type == xrm_String ) {
|
if ( type == xrm_String ) {
|
||||||
extra_options[num_extra_options].mem = ( (char *) ( *value ) );
|
extra_options[num_extra_options].mem = ( (char *) ( *value ) );
|
||||||
|
|
Loading…
Reference in New Issue