Generated v2 prefixes

This commit is contained in:
geky-bot
2022-11-10 21:10:59 +00:00
8 changed files with 35 additions and 19 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ int lfs2_filebd_sync(const struct lfs2_config *cfg) {
// file sync
lfs2_filebd_t *bd = cfg->context;
#ifdef _WIN32
int err = FlushFileBuffers((HANDLE) _get_osfhandle(fd)) ? 0 : -1;
int err = FlushFileBuffers((HANDLE) _get_osfhandle(bd->fd)) ? 0 : -1;
#else
int err = fsync(bd->fd);
#endif