X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffgetpos.c;h=6eb361e1986b720a37f02932c4f32c52cc3a0b12;hb=2fab90a71acd3698954c08b9062db67188443dd7;hp=5b663d1e172a887f052bfa44e0862558a040c2b8;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/stdio/fgetpos.c b/src/stdio/fgetpos.c index 5b663d1e..6eb361e1 100644 --- a/src/stdio/fgetpos.c +++ b/src/stdio/fgetpos.c @@ -1,10 +1,10 @@ #include "stdio_impl.h" -int fgetpos(FILE *f, fpos_t *pos) +int fgetpos(FILE *restrict f, fpos_t *restrict pos) { off_t off = __ftello(f); if (off < 0) return -1; - *(off_t *)pos = off; + *(long long *)pos = off; return 0; }