From 4693a51707fa5c29853d7df110b424df08114f38 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 25 May 2010 13:56:18 +0200 Subject: Constify the API and enable -Wwrite-strings The API is more similar to printf now. --- sds.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sds.h') 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); -- cgit v1.2.3