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: remove redundant cast
details: https://anonhg.NetBSD.org/src/rev/3c8eaa5bdb32
branches: trunk
changeset: 371243:3c8eaa5bdb32
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Oct 01 09:48:02 2022 +0000
description:
lint: remove redundant cast
Since C90 prototypes, integer arguments are converted to the correct
parameter type.
No functional change.
diffstat:
usr.bin/xlint/xlint/xlint.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r cedd7b9e3cfb -r 3c8eaa5bdb32 usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c Sat Oct 01 09:42:40 2022 +0000
+++ b/usr.bin/xlint/xlint/xlint.c Sat Oct 01 09:48:02 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.94 2022/07/05 22:50:41 rillig Exp $ */
+/* $NetBSD: xlint.c,v 1.95 2022/10/01 09:48:02 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: xlint.c,v 1.94 2022/07/05 22:50:41 rillig Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.95 2022/10/01 09:48:02 rillig Exp $");
#endif
#include <sys/param.h>
@@ -701,11 +701,11 @@
list_add(&args, name);
/* we reuse the same tmp file for cpp output, so rewind and truncate */
- if (lseek(cpp.outfd, (off_t)0, SEEK_SET) != 0) {
+ if (lseek(cpp.outfd, 0, SEEK_SET) != 0) {
warn("lseek");
terminate(-1);
}
- if (ftruncate(cpp.outfd, (off_t)0) != 0) {
+ if (ftruncate(cpp.outfd, 0) != 0) {
warn("ftruncate");
terminate(-1);
}
Home |
Main Index |
Thread Index |
Old Index