X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Femul%2Fkfile_posix.c;fp=bertos%2Femul%2Fkfile_posix.c;h=593571d4bfb8494c45540f35684d69a6052fde6d;hb=33ecbdb14c46beec78b84ae652b7956f3319397e;hp=3fce00bcf2b46b54bde179d7c4f18b8ce6fd6d25;hpb=b1c122a36a111f4bb088a8f000a7fc8f8975734e;p=bertos.git diff --git a/bertos/emul/kfile_posix.c b/bertos/emul/kfile_posix.c index 3fce00bc..593571d4 100644 --- a/bertos/emul/kfile_posix.c +++ b/bertos/emul/kfile_posix.c @@ -63,9 +63,10 @@ static kfile_off_t kfile_posix_seek(struct KFile *_fd, kfile_off_t offset, KSeek std_whence = SEEK_END; break; case KSM_SEEK_SET: - /* fall */ - default: std_whence = SEEK_SET; + break; + default: + ASSERT(0); } return fseek(fd->fp, offset, std_whence); @@ -83,7 +84,7 @@ static int kfile_posix_flush(struct KFile *_fd) return fflush(fd->fp); } -FILE* kfile_posix_init(KFilePosix *file, const char *filename, const char *mode) +FILE *kfile_posix_init(KFilePosix *file, const char *filename, const char *mode) { file->fd._type = KFT_KFILEPOSIX; file->fd.read = kfile_posix_read;