This allows static analysers to properly warn on unchecked return values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
{
if (val != 0) {
if (outfile_name)
- remove(outfile_name);
+ (void)remove(outfile_name);
}
exit(val);
}
{
if (val != 0) {
if (outfile_name)
- remove(outfile_name);
+ (void)remove(outfile_name);
}
exit(val);
}
error:
if (del != 0 && cinfo->cert) {
- remove(cinfo->cert);
+ (void)remove(cinfo->cert);
}
app_exit(retcode);
{
if (val != 0) {
if (outfile_name)
- remove(outfile_name);
+ (void)remove(outfile_name);
}
exit(val);
}
if (fd == NULL) {
fprintf(stderr, "Cannot open '%s' for write\n",
passwd_file);
- remove(tmpname);
+ (void)remove(tmpname);
return -1;
}
fd2 = fopen(tmpname, "r");
if (fd2 == NULL) {
fprintf(stderr, "Cannot open '%s' for read\n", tmpname);
- remove(tmpname);
+ (void)remove(tmpname);
fclose(fd);
return -1;
}
fclose(fd);
fclose(fd2);
- remove(tmpname);
+ (void)remove(tmpname);
return 0;
yes = 1;
/* avoid listen on ipv6 addresses failing
* because already listening on ipv4 addresses: */
- setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
+ (void)setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
(const void *) &yes, sizeof(yes));
}
#endif
if (fd == NULL) {
fprintf(stderr, "Cannot open '%s' for write\n",
tpasswd);
- remove(tmpname);
+ (void)remove(tmpname);
return -1;
}
if (fd2 == NULL) {
fprintf(stderr, "Cannot open '%s' for read\n",
tmpname);
- remove(tmpname);
+ (void)remove(tmpname);
return -1;
}
fclose(fd);
fclose(fd2);
- remove(tmpname);
+ (void)remove(tmpname);
}
{
if (val != 0) {
if (outfile_name)
- remove(outfile_name);
+ (void)remove(outfile_name);
}
exit(val);
}
const char *print;
FILE *fp;
- remove("debug-dh.out");
+ (void)remove("debug-dh.out");
if (verbose == 0 || pubkey.data == NULL)
return TEST_IGNORE;
int ret;
FILE *fp;
- remove("debug-certs.out");
+ (void)remove("debug-certs.out");
if (verbose == 0)
return TEST_IGNORE;
{
int ret;
- remove("debug-cas.out");
+ (void)remove("debug-cas.out");
if (verbose == 0)
return TEST_IGNORE;