shithub: c9

Download patch

ref: 24bfa2e98819929991dffd38d74f40a833779180
parent: a12448e8fc4a49b0e76177f20f019d03a68b1544
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sat Dec 21 18:20:31 EST 2019

remove a few consts to make things easier

--- a/c9.c
+++ b/c9.c
@@ -721,7 +721,7 @@
 }
 
 C9error
-s9walk(C9ctx *c, C9tag tag, const C9qid *qids[])
+s9walk(C9ctx *c, C9tag tag, C9qid *qids[])
 {
 	uint32_t i, n;
 	uint8_t *b;
@@ -805,7 +805,7 @@
 }
 
 C9error
-s9readdir(C9ctx *c, C9tag tag, const C9stat *st[], int *num, uint64_t *offset, uint32_t size)
+s9readdir(C9ctx *c, C9tag tag, C9stat *st[], int *num, uint64_t *offset, uint32_t size)
 {
 	uint8_t *b;
 	const C9stat *s;
--- a/c9.h
+++ b/c9.h
@@ -336,11 +336,11 @@
 extern C9error s9error(C9ctx *c, C9tag tag, const char *err) __attribute__((nonnull(1)));
 extern C9error s9attach(C9ctx *c, C9tag tag, const C9qid *qid) __attribute__((nonnull(1, 3)));
 extern C9error s9flush(C9ctx *c, C9tag tag) __attribute__((nonnull(1)));
-extern C9error s9walk(C9ctx *c, C9tag tag, const C9qid *qids[]) __attribute__((nonnull(1, 3)));
+extern C9error s9walk(C9ctx *c, C9tag tag, C9qid *qids[]) __attribute__((nonnull(1, 3)));
 extern C9error s9open(C9ctx *c, C9tag tag, const C9qid *qid, uint32_t iounit) __attribute__((nonnull(1, 3)));
 extern C9error s9create(C9ctx *c, C9tag tag, const C9qid *qid, uint32_t iounit) __attribute__((nonnull(1, 3)));
 extern C9error s9read(C9ctx *c, C9tag tag, const void *data, uint32_t size) __attribute__((nonnull(1, 3)));
-extern C9error s9readdir(C9ctx *c, C9tag tag, const C9stat *st[], int *num, uint64_t *offset, uint32_t size) __attribute__((nonnull(1, 3, 4)));
+extern C9error s9readdir(C9ctx *c, C9tag tag, C9stat *st[], int *num, uint64_t *offset, uint32_t size) __attribute__((nonnull(1, 3, 4)));
 extern C9error s9write(C9ctx *c, C9tag tag, uint32_t size) __attribute__((nonnull(1)));
 extern C9error s9clunk(C9ctx *c, C9tag tag) __attribute__((nonnull(1)));
 extern C9error s9remove(C9ctx *c, C9tag tag) __attribute__((nonnull(1)));