summaryrefslogtreecommitdiff
path: root/sds.h
diff options
context:
space:
mode:
authorPierre Riteau <priteau@gmail.com>2010-05-25 13:56:18 +0200
committerPierre Riteau <priteau@gmail.com>2010-05-25 14:02:14 +0200
commit4693a51707fa5c29853d7df110b424df08114f38 (patch)
tree97bc1be307a46a0e72b3080855d652ab76b502f7 /sds.h
parentbd4ec5705906642268d93561985f216f07dc2ba7 (diff)
Constify the API and enable -Wwrite-strings
The API is more similar to printf now.
Diffstat (limited to 'sds.h')
-rw-r--r--sds.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sds.h b/sds.h
index 8b632ff..76d69a8 100644
--- a/sds.h
+++ b/sds.h
@@ -48,8 +48,8 @@ size_t sdslen(const sds s);
sds sdsdup(const sds s);
void sdsfree(sds s);
size_t sdsavail(sds s);
-sds sdscatlen(sds s, void *t, size_t len);
-sds sdscat(sds s, char *t);
+sds sdscatlen(sds s, const void *t, size_t len);
+sds sdscat(sds s, const char *t);
sds sdscpylen(sds s, char *t, size_t len);
sds sdscpy(sds s, char *t);