diff options
author | Dmytro Bagrii <dimich@softerra.com> | 2013-10-10 16:59:26 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-10-11 17:19:48 +0200 |
commit | 0df4ef5cacc3f24c2fc0ef20cd71bb8466b03821 (patch) | |
tree | ef7e1d7fb787c8e56d665a4d530e328d37fde644 /tools | |
parent | 6228496889e0d06edf2b02f8d39f7e7ab25723d5 (diff) | |
download | neard-0df4ef5cacc3f24c2fc0ef20cd71bb8466b03821.tar.gz neard-0df4ef5cacc3f24c2fc0ef20cd71bb8466b03821.tar.bz2 neard-0df4ef5cacc3f24c2fc0ef20cd71bb8466b03821.zip |
nfctool: Fix options type
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nfctool/nfctool.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/nfctool/nfctool.h b/tools/nfctool/nfctool.h index da3c965..263852b 100644 --- a/tools/nfctool/nfctool.h +++ b/tools/nfctool/nfctool.h @@ -59,25 +59,25 @@ #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; |