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 Fix lseek(2) swapped arguments.
details: https://anonhg.NetBSD.org/src/rev/e0a7fdfb28dd
branches: trunk
changeset: 769682:e0a7fdfb28dd
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Sep 18 09:07:35 2011 +0000
description:
Fix lseek(2) swapped arguments.
diffstat:
usr.bin/xlint/xlint/xlint.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 04436ebe698e -r e0a7fdfb28dd usr.bin/xlint/xlint/xlint.c
--- a/usr.bin/xlint/xlint/xlint.c Sun Sep 18 05:33:13 2011 +0000
+++ b/usr.bin/xlint/xlint/xlint.c Sun Sep 18 09:07:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xlint.c,v 1.43 2010/03/22 01:29:30 mrg Exp $ */
+/* $NetBSD: xlint.c,v 1.44 2011/09/18 09:07:35 njoly 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.43 2010/03/22 01:29:30 mrg Exp $");
+__RCSID("$NetBSD: xlint.c,v 1.44 2011/09/18 09:07:35 njoly Exp $");
#endif
#include <sys/param.h>
@@ -680,7 +680,7 @@
appcstrg(&args, name);
/* we reuse the same tmp file for cpp output, so rewind and truncate */
- if (lseek(cppoutfd, SEEK_SET, (off_t)0) != 0) {
+ if (lseek(cppoutfd, (off_t)0, SEEK_SET) != 0) {
warn("lseek");
terminate(-1);
}
Home |
Main Index |
Thread Index |
Old Index