summaryrefslogtreecommitdiff
path: root/tools/command.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-03-11 21:08:07 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-03-13 12:58:57 +0100
commite9cadbe105b7a449d98598a9329a170bce2d689e (patch)
treee03daa21bf9bd1a2a06dd1e283a5122e130e6305 /tools/command.c
parent49a8c786d5fdbf79ac60f2720d4e1433146d14f4 (diff)
downloadlvm2-e9cadbe105b7a449d98598a9329a170bce2d689e.tar.gz
cleanup: matching signess
Diffstat (limited to 'tools/command.c')
-rw-r--r--tools/command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/command.c b/tools/command.c
index 10efedba4..fafbaa912 100644
--- a/tools/command.c
+++ b/tools/command.c
@@ -2927,7 +2927,8 @@ static void _print_man_option_desc(struct command_name *cname, int opt_enum)
char buf[DESC_LINE];
int started_cname = 0;
int line_count = 0;
- int di, bi = 0;
+ int bi = 0;
+ unsigned di;
if (desc[0] != '#') {
printf("%s", desc);
@@ -3246,7 +3247,7 @@ static void _print_man_all_positions_desc(struct command_name *cname)
static void _print_desc_man(const char *desc)
{
char buf[DESC_LINE] = {0};
- int di = 0;
+ unsigned di;
int bi = 0;
for (di = 0; di < strlen(desc); di++) {