aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-01-26 10:42:20 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-01-27 11:18:45 +0000
commitfa977a3b2bb2d0e6c2957b14474c31b58dd3a8e1 (patch)
treec8f958c1f98e335e6196462f976638e88d109c4c /usr.bin/diff/diffreg.c
parentc440e7870a020546ad241848e2ff8e9cb27a3073 (diff)
downloadsrc-fa977a3b2bb2d0e6c2957b14474c31b58dd3a8e1.tar.gz
src-fa977a3b2bb2d0e6c2957b14474c31b58dd3a8e1.zip
diff: eliminate a useless lseek
fdopen with the "r" already position the stream at the beginning of the file.
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c1
1 files changed, 0 insertions, 1 deletions
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"));
}