Skip to content

Commit

Permalink
clamconf: fix issue printing size types
Browse files Browse the repository at this point in the history
Fixes: #1013
  • Loading branch information
teoberi authored Dec 22, 2023
1 parent 2178e4a commit 5fceabe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clamconf/clamconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ static void printopts(struct optstruct *opts, int nondef)

case CLOPT_TYPE_NUMBER:
case CLOPT_TYPE_SIZE:
case CLOPT_TYPE_SIZE64:
printf("%s = \"%lld\"", opts->name, opts->numarg);
opt = opts;
while ((opt = opt->nextarg))
Expand Down Expand Up @@ -169,7 +170,8 @@ static int printconf(const char *name)
break;

case CLOPT_TYPE_SIZE:
printf("# You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)\n# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size\n# in bytes just don't use modifiers.\n");
case CLOPT_TYPE_SIZE64:
printf("# You may use 'G' or 'g' for gigabytes (1G = 1g = 1,073,741,824 bytes)\n# 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)\n# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size\n# in bytes just don't use modifiers.\n");
if (cpt->numarg != -1)
printf("# Default: %lld\n", cpt->numarg);
else
Expand Down

0 comments on commit 5fceabe

Please sign in to comment.