summaryrefslogtreecommitdiff
path: root/tools/command.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2020-09-01 17:53:36 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2020-09-01 17:57:50 +0200
commit85e2c7e14dc888e54174222600fc38470ab035df (patch)
treefa4e4359aa50e44bf338e00f420d62b033a2f9fe /tools/command.c
parent1705b439b1babfcae75b1d54d45eb7909cbccfb9 (diff)
downloadlvm2-85e2c7e14dc888e54174222600fc38470ab035df.tar.gz
cov: explicitely ignore function result
Diffstat (limited to 'tools/command.c')
-rw-r--r--tools/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/command.c b/tools/command.c
index 2d0184941..4fc55e2be 100644
--- a/tools/command.c
+++ b/tools/command.c
@@ -367,7 +367,7 @@ static int _opt_str_to_num(struct command *cmd, char *str)
int i;
int first = 0, last = ARG_COUNT - 1, middle;
- dm_strncpy(long_name, str, sizeof(long_name));
+ (void) dm_strncpy(long_name, str, sizeof(long_name));
if ((p = strstr(long_name, "_long")))
/*
@@ -802,7 +802,7 @@ static char *_get_oo_line(const char *str)
char str2[OO_NAME_LEN];
int i;
- dm_strncpy(str2, str, sizeof(str2));
+ (void) dm_strncpy(str2, str, sizeof(str2));
if ((end = strchr(str2, ':')))
*end = '\0';
if ((end = strchr(str2, ',')))