aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-03-21 23:15:58 -0700
committerkatherine <shmibs@shmibbles.me>2018-03-21 23:15:58 -0700
commit9e843b2dda247b5e61d168a77bf93afa3f0e78db (patch)
tree75bf47fc044e4ca7efd85687eaba4d5882e5ef21 /doc
parentd2043c1d4cc0a1ec2d7c4b2ed7f9b6d529514172 (diff)
downloadsimple-opt-9e843b2dda247b5e61d168a77bf93afa3f0e78db.tar.gz
resolve some pedantic warnings
Diffstat (limited to 'doc')
-rw-r--r--doc/interface.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/interface.md b/doc/interface.md
index 86937f8..da07986 100644
--- a/doc/interface.md
+++ b/doc/interface.md
@@ -53,9 +53,12 @@ the fields which are set by `simple_opt_parse` are:
union {
bool val_bool;
- int val_int;
- unsigned val_unsigned;
- char val_string[SIMPLE_OPT_ARG_MAX_WIDTH];
+ long val_int;
+ unsigned long val_unsigned;
+ double val_double;
+ char val_char;
+ char val_string[SIMPLE_OPT_OPT_ARG_MAX_WIDTH];
+ int val_string_set_idx;
};
```