mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
make -vet happy
This commit is contained in:
@@ -370,6 +370,9 @@ _is_file :: proc(name: string) -> bool {
|
|||||||
}
|
}
|
||||||
s: _Stat
|
s: _Stat
|
||||||
res := unix.sys_stat(name_cstr, &s)
|
res := unix.sys_stat(name_cstr, &s)
|
||||||
|
if res < 0 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return S_ISREG(s.mode)
|
return S_ISREG(s.mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -389,6 +392,9 @@ _is_dir :: proc(name: string) -> bool {
|
|||||||
}
|
}
|
||||||
s: _Stat
|
s: _Stat
|
||||||
res := unix.sys_stat(name_cstr, &s)
|
res := unix.sys_stat(name_cstr, &s)
|
||||||
|
if res < 0 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return S_ISDIR(s.mode)
|
return S_ISDIR(s.mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user