lint: Fix lseek() argument order.
Because SEEK_SET is 0, this seems to have no effect on the generated code. PR: bin/160806 Submitted by: Henning Petersen <henning dot petersen at t-online dot de> Obtained from: NetBSD
This commit is contained in:
parent
ad56ebdc15
commit
6e678e0ce9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227123
@ -656,7 +656,7 @@ fname(const char *name)
|
|||||||
appcstrg(&args, name);
|
appcstrg(&args, name);
|
||||||
|
|
||||||
/* we reuse the same tmp file for cpp output, so rewind and truncate */
|
/* 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");
|
warn("lseek");
|
||||||
terminate(-1);
|
terminate(-1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user