mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
fsetpos: makes the fsetpos function comply with POSIX standard
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
Change the 'pos' parameter of fsetpos() from 'fpos_t *' to 'const fpos_t *' in both the prototype and implementation, aligning with POSIX specification which requires the position parameter to be const-qualified. Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int fsetpos(FAR FILE *stream, FAR fpos_t *pos)
|
||||
int fsetpos(FAR FILE *stream, FAR const fpos_t *pos)
|
||||
{
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (!stream || !pos)
|
||||
|
||||
Reference in New Issue
Block a user