Module Name:    src
Committed By:   rillig
Date:           Sat Oct  1 09:48:02 UTC 2022

Modified Files:
        src/usr.bin/xlint/xlint: xlint.c

Log Message:
lint: remove redundant cast

Since C90 prototypes, integer arguments are converted to the correct
parameter type.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/usr.bin/xlint/xlint/xlint.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/xlint/xlint.c
diff -u src/usr.bin/xlint/xlint/xlint.c:1.94 src/usr.bin/xlint/xlint/xlint.c:1.95
--- src/usr.bin/xlint/xlint/xlint.c:1.94	Tue Jul  5 22:50:41 2022
+++ src/usr.bin/xlint/xlint/xlint.c	Sat Oct  1 09:48:02 2022
@@ -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 @@ fname(const char *name)
 	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);
 	}

Reply via email to