about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-09-01 12:58:24 -0700
committerBrian Anderson <banderson@mozilla.com>2011-09-01 13:16:44 -0700
commit8f531e769a025859eeebf6e99c50c4b786fb0814 (patch)
tree888b07a3c1186f4e0db934bc33605e76b3fbae4a /src/rt/rust_builtin.cpp
parentbaa1e8790d6c8d04de5a371a1c231ca9f2caa3b0 (diff)
downloadrust-8f531e769a025859eeebf6e99c50c4b786fb0814.tar.gz
rust-8f531e769a025859eeebf6e99c50c4b786fb0814.zip
Convert rust_file_is_dir from estrs to cstrs. Issue #855
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 3e89d12e438..34624f1a817 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -444,9 +444,9 @@ rust_dirent_filename(rust_task *task, dirent* ent) {
 #endif
 
 extern "C" CDECL int
-rust_file_is_dir(rust_task *task, rust_str *path) {
+rust_file_is_dir(rust_task *task, char *path) {
     struct stat buf;
-    if (stat((char*)path->data, &buf)) {
+    if (stat(path, &buf)) {
         return 0;
     }
     return S_ISDIR(buf.st_mode);