summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/time_plan9_386.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/time_plan9_386.c')
-rw-r--r--src/pkg/runtime/time_plan9_386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/time_plan9_386.c b/src/pkg/runtime/time_plan9_386.c
index a29d45715..fc08a90d6 100644
--- a/src/pkg/runtime/time_plan9_386.c
+++ b/src/pkg/runtime/time_plan9_386.c
@@ -24,7 +24,7 @@ runtime·nanotime(void)
// file descriptor) is roughly four times slower
// in 9vx on a 2.16 GHz Intel Core 2 Duo.
- if(fd < 0 && (fd = runtime·open((byte*)"/dev/bintime", OREAD|OCEXEC)) < 0)
+ if(fd < 0 && (fd = runtime·open("/dev/bintime", OREAD|OCEXEC, 0)) < 0)
return 0;
if(runtime·pread(fd, b, sizeof b, 0) != sizeof b)
return 0;