diff options
author | Pierre Riteau <priteau@gmail.com> | 2010-05-25 13:56:18 +0200 |
---|---|---|
committer | Pierre Riteau <priteau@gmail.com> | 2010-05-25 14:02:14 +0200 |
commit | 4693a51707fa5c29853d7df110b424df08114f38 (patch) | |
tree | 97bc1be307a46a0e72b3080855d652ab76b502f7 /sds.h | |
parent | bd4ec5705906642268d93561985f216f07dc2ba7 (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |