From a2f6e5dc66cea621057ae41a6e01bb2a8d46c3fc Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Tue, 18 Apr 2017 16:54:37 -0700 Subject: [PATCH] Fix return type for MVM_dir_chdir_C_string --- src/io/dirops.c | 2 +- src/io/dirops.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/io/dirops.c b/src/io/dirops.c index 8cae620b6e..2079b671ee 100644 --- a/src/io/dirops.c +++ b/src/io/dirops.c @@ -143,7 +143,7 @@ MVMString * MVM_dir_cwd(MVMThreadContext *tc) { return MVM_string_utf8_c8_decode(tc, tc->instance->VMString, path, strlen(path)); } -char * MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring) { +int MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring) { return uv_chdir(dirstring); } /* Change directory. */ diff --git a/src/io/dirops.h b/src/io/dirops.h index 27cfb607a9..a906f26e8f 100644 --- a/src/io/dirops.h +++ b/src/io/dirops.h @@ -4,5 +4,5 @@ MVMObject * MVM_dir_open(MVMThreadContext *tc, MVMString *dirname); MVMString * MVM_dir_read(MVMThreadContext *tc, MVMObject *oshandle); void MVM_dir_close(MVMThreadContext *tc, MVMObject *oshandle); MVMString * MVM_dir_cwd(MVMThreadContext *tc); -char * MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring); +int MVM_dir_chdir_C_string(MVMThreadContext *tc, const char *dirstring); void MVM_dir_chdir(MVMThreadContext *tc, MVMString *dir);