Tiny cleanup.

This commit is contained in:
QC 2015-03-07 17:22:25 +01:00
parent 7322819a1d
commit 19e849d4e7
2 changed files with 4 additions and 4 deletions

View File

@ -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 ) ) {
;

View File

@ -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 ) );