From: Daniel Elstner Date: Fri, 9 Oct 2015 15:22:21 +0000 (+0200) Subject: options: Type of G_OPTION_ARG_NONE is gboolean X-Git-Tag: sigrok-cli-0.6.0~6 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2620358aec3debcf4db81709927e8bb787d08b9b;p=sigrok-cli.git options: Type of G_OPTION_ARG_NONE is gboolean Change mistaken gchar * variables to gboolean type. --- diff --git a/options.c b/options.c index f2acb19..d7418df 100644 --- a/options.c +++ b/options.c @@ -42,13 +42,13 @@ gchar *opt_pd_binary = NULL; gchar *opt_input_format = NULL; gchar *opt_output_format = NULL; gchar *opt_transform_module = NULL; -gchar *opt_show = NULL; +gboolean opt_show = FALSE; gchar *opt_time = NULL; gchar *opt_samples = NULL; gchar *opt_frames = NULL; -gchar *opt_continuous = NULL; +gboolean opt_continuous = FALSE; gchar *opt_get = NULL; -gchar *opt_set = NULL; +gboolean opt_set = FALSE; /* * Defines a callback function that generates an error if an diff --git a/sigrok-cli.h b/sigrok-cli.h index 93a3b58..476ee92 100644 --- a/sigrok-cli.h +++ b/sigrok-cli.h @@ -120,13 +120,13 @@ extern gchar *opt_pd_binary; extern gchar *opt_input_format; extern gchar *opt_output_format; extern gchar *opt_transform_module; -extern gchar *opt_show; +extern gboolean opt_show; extern gchar *opt_time; extern gchar *opt_samples; extern gchar *opt_frames; -extern gchar *opt_continuous; +extern gboolean opt_continuous; extern gchar *opt_get; -extern gchar *opt_set; +extern gboolean opt_set; int parse_options(int argc, char **argv); void show_help(void);