Mercurial > hg > th-libs
comparison th_ioctx_stdio.c @ 691:49c818acbbbe
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Mar 2020 16:22:01 +0200 |
parents | 7e207f1023d9 |
children | 4ca6a3b30fe8 |
comparison
equal
deleted
inserted
replaced
690:953e16582f25 | 691:49c818acbbbe |
---|---|
49 } | 49 } |
50 | 50 |
51 | 51 |
52 static int th_stdio_freset(th_ioctx *ctx) | 52 static int th_stdio_freset(th_ioctx *ctx) |
53 { | 53 { |
54 if (CTX_FH != NULL) | 54 return th_stdio_fseek(ctx, 0, SEEK_SET); |
55 return th_stdio_fseek(ctx, 0, SEEK_SET); | |
56 else | |
57 return THERR_OK; | |
58 } | 55 } |
59 | 56 |
60 | 57 |
61 static off_t th_stdio_fsize(th_ioctx *ctx) | 58 static off_t th_stdio_fsize(th_ioctx *ctx) |
62 { | 59 { |