From fa977a3b2bb2d0e6c2957b14474c31b58dd3a8e1 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Tue, 26 Jan 2021 11:42:20 +0100 Subject: [PATCH] diff: eliminate a useless lseek fdopen with the "r" already position the stream at the beginning of the file. --- usr.bin/diff/diffreg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index 4e887ab27c7b..a8d668ea0984 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -491,7 +491,6 @@ opentemp(const char *f) } } close(ifd); - lseek(ofd, (off_t)0, SEEK_SET); return (fdopen(ofd, "r")); }