Fix lseek(2) swapped arguments.
This commit is contained in:
parent
11f8ac704b
commit
7d41567535
|
@ -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 @@ fname(const char *name)
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue