]> mj.ucw.cz Git - libucw.git/commitdiff
Opt: Fixed a typo in OPT_UINT.
authorPavel Charvat <pchar@ucw.cz>
Mon, 17 Feb 2014 12:14:14 +0000 (13:14 +0100)
committerPavel Charvat <pchar@ucw.cz>
Mon, 17 Feb 2014 12:14:14 +0000 (13:14 +0100)
ucw/opt.h

index 392aabfb071ba3c2807d684853f936b4902f16c7..5eae050eb68938f624a484fdec60ad7b7e6bb1f4 100644 (file)
--- a/ucw/opt.h
+++ b/ucw/opt.h
@@ -172,7 +172,7 @@ struct opt_item {
 #define OPT_INT(shortopt, longopt, target, fl, desc) { .letter = shortopt, .name = longopt, .ptr = CHECK_PTR_TYPE(&target, int *), .help = desc, .flags = fl, .cls = OPT_CL_STATIC, .type = CT_INT }
 
 /** Unsigned integer option. @target should be a variable of type `uint`. **/
-#define OPT_UINT(shortopt, longopt, target, fl, desc) { .letter = shortopt, .name = longopt, .ptr = CHECK_PTR_TYPE(&target, int *), .help = desc, .flags = fl, .cls = OPT_CL_STATIC, .type = CT_INT }
+#define OPT_UINT(shortopt, longopt, target, fl, desc) { .letter = shortopt, .name = longopt, .ptr = CHECK_PTR_TYPE(&target, uint *), .help = desc, .flags = fl, .cls = OPT_CL_STATIC, .type = CT_INT }
 
 /** 64-bit integer option. @target should be a variable of type `u64`. **/
 #define OPT_U64(shortopt, longopt, target, fl, desc) { .letter = shortopt, .name = longopt, .ptr = CHECK_PTR_TYPE(&target, u64 *), .help = desc, .flags = fl, .cls = OPT_CL_STATIC, .type = CT_U64 }