Skip to content

Commit

Permalink
Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matlo committed Oct 30, 2014
1 parent e729d9c commit d984e82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ int args_read(int argc, char *argv[], s_gimx_params* params)
int ret = 0;
int c;
unsigned char controller = 0;
unsigned char event = 0;

struct option long_options[] =
{
Expand Down Expand Up @@ -187,6 +188,7 @@ int args_read(int argc, char *argv[], s_gimx_params* params)
printf(_("option -e with value `%s(%d)'\n"), axis_label, value);
adapter_set_axis(controller, axis, value);
adapter_get(controller)->event = 1;
event = 1;
}
else
{
Expand Down Expand Up @@ -336,9 +338,9 @@ int args_read(int argc, char *argv[], s_gimx_params* params)
if(params->window_events)
printf(_("window_events flag is set\n"));

if(!params->config_file && !params->keygen)
if(!params->config_file && !event)
{
fprintf(stderr, "At least a config file or a keygen should be specified as argument.\n");
fprintf(stderr, "At least a config file or an event should be specified as argument.\n");
ret = -1;
}

Expand Down

0 comments on commit d984e82

Please sign in to comment.