Skip to content

Commit 9e0ac44

Browse files
devnexenandrewrk
authored andcommitted
std.c: fix haiku's find_path signature.
codePointer and subPath are not mandatory. following up on 1084590
1 parent afc5eda commit 9e0ac44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/c/haiku.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub const _errno = _errnop;
1313

1414
pub extern "c" fn find_directory(which: directory_which, volume: i32, createIt: bool, path_ptr: [*]u8, length: i32) status_t;
1515

16-
pub extern "c" fn find_path(codePointer: *const u8, baseDirectory: path_base_directory, subPath: [*:0]const u8, pathBuffer: [*:0]u8, bufferSize: usize) status_t;
16+
pub extern "c" fn find_path(codePointer: ?*const u8, baseDirectory: path_base_directory, subPath: ?[*:0]const u8, pathBuffer: [*:0]u8, bufferSize: usize) status_t;
1717

1818
pub extern "c" fn find_thread(thread_name: ?*anyopaque) i32;
1919

0 commit comments

Comments
 (0)