diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-06-02 14:54:32 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-06-02 14:54:32 -0700 |
commit | 0fae7444c66080616eba01f7702bdb2d9b493166 (patch) | |
tree | 2f88b79ea21f4ca2c512eb0ff05f548ffe27ae5d /include/libn.h | |
parent | cdc50fd76fd0e286f40416f579d60f14e19aa9f5 (diff) |
prototype of dway. needs testing
Diffstat (limited to 'include/libn.h')
-rw-r--r-- | include/libn.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libn.h b/include/libn.h index 5201b1c..38f0a3a 100644 --- a/include/libn.h +++ b/include/libn.h @@ -294,7 +294,10 @@ int bufio·read(io·Buffer *buf, int sz, int n, void *out); typedef struct mmap·Reader { vlong len; - void* buf; + union { + byte *buf; + ubyte *ubuf; + }; } mmap·Reader; mmap·Reader mmap·open(byte *name); |