summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-14 08:08:55 +0000
committered <ed@FreeBSD.org>2010-01-14 08:08:55 +0000
commit61e4e14b1517ccbcfd599caa75d074f7e0d9410c (patch)
tree386acb8f7f649cd6113470e2f89bb48d8f96ef3f /lib
parent2bf206e0010131bb276c0d1c657a8081f2c17359 (diff)
downloadFreeBSD-src-61e4e14b1517ccbcfd599caa75d074f7e0d9410c.zip
FreeBSD-src-61e4e14b1517ccbcfd599caa75d074f7e0d9410c.tar.gz
Don't use fseeko() to obtain the file offset.
I was a bit confused with lseek(), which returns the new offset. We should ftello() to obtain it using stdio.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/pututxline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/pututxline.c b/lib/libc/gen/pututxline.c
index 8c2e91d..c0440df 100644
--- a/lib/libc/gen/pututxline.c
+++ b/lib/libc/gen/pututxline.c
@@ -96,7 +96,7 @@ utx_active_add(const struct futx *fu)
default:
/* Allow us to overwrite unused records. */
if (partial == -1)
- partial = fseeko(fp, 0, SEEK_CUR) - sizeof fe;
+ partial = ftello(fp) - sizeof fe;
break;
}
}
OpenPOWER on IntegriCloud