From b7bf4b034e72e76fb6e97210f2b839cf4d878d29 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 22 May 2021 07:45:00 +0300 Subject: [PATCH] os: use stricter declarations for C.getc/1, C.fseeko/3 and C._fseeki64/3 --- vlib/os/file.c.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/os/file.c.v b/vlib/os/file.c.v index beedbfb28c..65ecb838cc 100644 --- a/vlib/os/file.c.v +++ b/vlib/os/file.c.v @@ -13,11 +13,11 @@ struct FileInfo { size int } -fn C.fseeko(voidptr, u64, int) int +fn C.fseeko(&C.FILE, u64, int) int -fn C._fseeki64(voidptr, u64, int) int +fn C._fseeki64(&C.FILE, u64, int) int -fn C.getc(voidptr) int +fn C.getc(&C.FILE) int // open_file can be used to open or create a file with custom flags and permissions and returns a `File` object. pub fn open_file(path string, mode string, options ...int) ?File {