diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-27 21:01:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-28 10:31:28 +0000 |
commit | 316ac78e78b7ff75aa914d9b34c086cef9ef843c (patch) | |
tree | d0542c666ac958fc8c8547ba0617fc77d29a1bdb /soltools | |
parent | fafcf07ec98db304a07e21ddc984bf94a68344c6 (diff) |
coverity#982185 silence Unchecked return value from library
and
coverity#982184 Unchecked return value from library
Change-Id: I4b4ba39abc4c008b68cfc1498ee56ac9c4934c98
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/mkdepend/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c index 6cbcf128f55b..9c63e0e629e3 100644 --- a/soltools/mkdepend/main.c +++ b/soltools/mkdepend/main.c @@ -194,7 +194,7 @@ int main(int argc, char **argv) nargc = 1; if ((afd = open(argv[1]+1, O_RDONLY)) < 0) fatalerr("cannot open \"%s\"\n", argv[1]+1); - fstat(afd, &ast); + (void)fstat(afd, &ast); args = (char *)malloc(ast.st_size + 1); if ((ast.st_size = read(afd, args, (size_t) ast.st_size)) < 0) fatalerr("failed to read %s\n", argv[1]+1); @@ -488,7 +488,7 @@ struct filepointer *getfile(char *file) *content->f_p = '\0'; return(content); } - fstat(fd, &st); + (void)fstat(fd, &st); size_backup = st.st_size; malloc_size = size_backup; |