Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/xlint lint: explicitly ignore the return value...
details: https://anonhg.NetBSD.org/src/rev/51d3ba6528c0
branches: trunk
changeset: 1023167:51d3ba6528c0
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Aug 28 14:42:29 2021 +0000
description:
lint: explicitly ignore the return value of close
diffstat:
usr.bin/xlint/xlint/xlint.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 4467b22f12d7 -r 51d3ba6528c0 usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c Sat Aug 28 13:29:26 2021 +0000
+++ b/usr.bin/xlint/xlint/xlint.c Sat Aug 28 14:42:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.79 2021/08/20 05:45:19 rillig Exp $ */
+/* $NetBSD: xlint.c,v 1.80 2021/08/28 14:42:29 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: xlint.c,v 1.79 2021/08/20 05:45:19 rillig Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.80 2021/08/28 14:42:29 rillig Exp $");
#endif
#include <sys/param.h>
@@ -652,7 +652,7 @@
warn("can't make temp");
terminate(-1);
}
- close(fd);
+ (void)close(fd);
}
if (!iflag)
list_add_copy(&lint1.outfiles, ofn);
@@ -746,7 +746,7 @@
/* setup the standard output if necessary */
if (fdout != -1) {
dup2(fdout, STDOUT_FILENO);
- close(fdout);
+ (void)close(fdout);
}
(void)execvp(path, args);
warn("cannot exec %s", path);
Home |
Main Index |
Thread Index |
Old Index