aboutsummaryrefslogtreecommitdiffstats
path: root/capinfos.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-04-30 03:18:25 -0700
committerGuy Harris <gharris@sonic.net>2021-04-30 03:19:19 -0700
commit57a1514ac74527651ad42dca3041f3f53509317e (patch)
treea69a01eaeac3d625a5312930fa81f0a3c6b12e96 /capinfos.c
parent09147397007c5456fd5acd4794b5ba15330bdad3 (diff)
Cast away the return value of g_strlcpy() and g_strlcat().
Most of the time, the return value tells us nothing useful, as we've already decided that we're perfectly willing to live with string truncation. Hopefully this keeps Coverity from whining that those routines could return an error code (NARRATOR: They don't) and thus that we're ignoring the possibility of failure (as indicated, we've already decided that we can live with string truncation, so truncation is *NOT* a failure).
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capinfos.c b/capinfos.c
index 4cfa45510b..c0e0f6c29a 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -1820,9 +1820,9 @@ main(int argc, char *argv[])
for (opt = optind; opt < argc; opt++) {
- g_strlcpy(file_sha256, "<unknown>", HASH_STR_SIZE);
- g_strlcpy(file_rmd160, "<unknown>", HASH_STR_SIZE);
- g_strlcpy(file_sha1, "<unknown>", HASH_STR_SIZE);
+ (void) g_strlcpy(file_sha256, "<unknown>", HASH_STR_SIZE);
+ (void) g_strlcpy(file_rmd160, "<unknown>", HASH_STR_SIZE);
+ (void) g_strlcpy(file_sha1, "<unknown>", HASH_STR_SIZE);
if (cap_file_hashes) {
fh = ws_fopen(argv[opt], "rb");