about summary refs log tree commit diff
path: root/src/rt/rust_port.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-10 15:59:31 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-10 15:59:31 -0800
commit08d0ff38bc6efe2915b877dfec443a3d7853831b (patch)
tree8e494a49ff43013c07a403abcd8dfae4a7b78dbe /src/rt/rust_port.cpp
parent0dc83879958ed008b4be9decf2efaa2be6c7eea3 (diff)
downloadrust-08d0ff38bc6efe2915b877dfec443a3d7853831b.tar.gz
rust-08d0ff38bc6efe2915b877dfec443a3d7853831b.zip
rt: Remove new_chan. Not needed
Diffstat (limited to 'src/rt/rust_port.cpp')
-rw-r--r--src/rt/rust_port.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp
index afa4cd738d6..6d83fb2faa9 100644
--- a/src/rt/rust_port.cpp
+++ b/src/rt/rust_port.cpp
@@ -1,8 +1,7 @@
 #include "rust_internal.h"
 #include "rust_port.h"
+#include "rust_chan.h"
 
-extern "C" CDECL rust_chan*
-new_chan(rust_port *port);
 
 rust_port::rust_port(rust_task *task, size_t unit_sz)
     : ref_count(1), kernel(task->kernel), task(task),
@@ -13,7 +12,8 @@ rust_port::rust_port(rust_task *task, size_t unit_sz)
         PRIxPTR, (uintptr_t)task, unit_sz, (uintptr_t)this);
 
     id = task->register_port(this);
-    remote_chan = new_chan(this);
+    remote_chan = new (task->kernel, "rust_chan")
+        rust_chan(task->kernel, this, unit_sz);
 }
 
 rust_port::~rust_port() {