diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-12-30 20:46:08 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-01-06 22:40:31 -0800 |
| commit | 98f5109cde838e66d629bf05c804ad1ca9b06c42 (patch) | |
| tree | 097edb4079a90bd4db126927e15494e686b25fd9 /src/rt/rust.cpp | |
| parent | e88905cd2882919f95084f41539ca9601ebf5cfc (diff) | |
| download | rust-98f5109cde838e66d629bf05c804ad1ca9b06c42.tar.gz rust-98f5109cde838e66d629bf05c804ad1ca9b06c42.zip | |
simplify task impl
Diffstat (limited to 'src/rt/rust.cpp')
| -rw-r--r-- | src/rt/rust.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 74e0db31247..a3b30c26e5b 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -98,7 +98,7 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { DLOG(sched, dom, "startup: arg[%d] = '%s'", i, args->argv[i]); } - root_task->start(main_fn, (uintptr_t)args->args); + root_task->start((spawn_fn)main_fn, (uintptr_t)args->args); root_task->deref(); root_task = NULL; @@ -119,6 +119,5 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) { // indent-tabs-mode: nil // c-basic-offset: 4 // buffer-file-coding-system: utf-8-unix -// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'"; // End: // |
