]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/opt-test.c
Opt: Added OPT_HELP_COLUMNS
[libucw.git] / ucw / opt-test.c
index ffaf0f9ecf8c41bf1677cb32283daaec46d2f443..07fd6835f8c1ca7b1d5a69ed18c49744910feecf 100644 (file)
@@ -100,7 +100,7 @@ static struct cf_user_type teapot_temperature_t = {
   .dumper = (cf_dumper1*) teapot_temperature_dumper
 };
 
-static void opt_test_hook(struct opt_item * opt, uns event UNUSED, const char * value, void * data) {
+static void opt_test_hook(struct opt_item * opt, uint event UNUSED, const char * value, void * data) {
   if (!show_hooks)
     return;
   if (opt)
@@ -180,8 +180,8 @@ int main(int argc UNUSED, char ** argv)
     printf("Chosen teapot: %s|", teapot_type_str[set]);
   printf("Temperature: %d%s|", temperature.value, temp_scale_str[temperature.scale]);
   printf("Verbosity: %d|", verbose);
-  uns magick = GARY_SIZE(black_magic);
-  for (uns i=0; i<magick; i++)
+  uint magick = GARY_SIZE(black_magic);
+  for (uint i=0; i<magick; i++)
     printf("Black magic: %d|", black_magic[i]);
   printf("Prayer: %s|", pray ? "yes" : "no");
   printf("Clean: %s|", clean_pot ? "yes" : "no");