summaryrefslogtreecommitdiff
path: root/libstd/blat.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-05 22:00:16 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-05 22:00:16 -0400
commit0e2a8ea63cfc8b070335288ce97c87e4a7fa2548 (patch)
treef5277c229d89154aed8e85a142b2d487a4c002d7 /libstd/blat.myr
parentd2f0c0cc30a102c6b9cdd7e4c0da840fb830e66d (diff)
downloadmc-0e2a8ea63cfc8b070335288ce97c87e4a7fa2548.tar.gz
Split open and openmode
Most open calls don't need the mode param. If you need it, use openmode.
Diffstat (limited to 'libstd/blat.myr')
-rw-r--r--libstd/blat.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstd/blat.myr b/libstd/blat.myr
index f5a665e..ccd5ad0 100644
--- a/libstd/blat.myr
+++ b/libstd/blat.myr
@@ -10,7 +10,7 @@ const blat = {path, buf
var written
var n
- fd = open(path, Ocreat|Owronly, 0o777)
+ fd = openmode(path, Ocreat|Owronly, 0o777)
if fd < 0
fatal(1, "Could not open file \"%s\"", path)
;;