nfctool: Fix options type
authorDmytro Bagrii <dimich@softerra.com>
Thu, 10 Oct 2013 13:59:26 +0000 (16:59 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 11 Oct 2013 15:19:48 +0000 (17:19 +0200)
G_OPTION_ARG_NONE flag in GOptionEntry expects gboolean type instead
of bool.
On platforms where sizeof(bool) != sizeof(gboolean), this patch fixes
runtime parsing error for nfctool.

tools/nfctool/nfctool.h

index da3c965..263852b 100644 (file)
 #define SNIFFER_SHOW_TIMESTAMP_ABS     2
 
 struct nfctool_options {
-       bool show_version;
-       bool list;
-       bool poll;
+       gboolean show_version;
+       gboolean list;
+       gboolean poll;
        guint8 poll_mode;
        gchar *device_name;
        guint32 adapter_idx;
-       bool enable_dev;
-       bool disable_dev;
+       gboolean enable_dev;
+       gboolean disable_dev;
        gchar *fw_filename;
-       bool set_param;
+       gboolean set_param;
        gint32 lto;
        gint32 rw;
        gint32 miux;
-       bool need_netlink;
-       bool snl;
+       gboolean need_netlink;
+       gboolean snl;
        GSList *snl_list;
-       bool sniff;
+       gboolean sniff;
        gsize snap_len;
-       bool dump_symm;
+       gboolean dump_symm;
        guint8 show_timestamp;
        guint8 snep_sap;
        guint8 handover_sap;