X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fmempool.h;h=c53423abc1130a1f8f4600c4535c3e543e4697cd;hb=3febf8d01e8646347c4bf85319187ebda9e1a370;hp=4575d8718d42d40f3b15c339b6f1e84a0cff9e7f;hpb=f3625d622964cf99300ceb7e499b99ebbce9fe69;p=libucw.git diff --git a/lib/mempool.h b/lib/mempool.h index 4575d871..c53423ab 100644 --- a/lib/mempool.h +++ b/lib/mempool.h @@ -274,11 +274,11 @@ void mp_pop(struct mempool *pool); /*** mempool-str.c ***/ -char *mp_strdup(struct mempool *, char *) LIKE_MALLOC; -void *mp_memdup(struct mempool *, void *, uns) LIKE_MALLOC; +char *mp_strdup(struct mempool *, const char *) LIKE_MALLOC; +void *mp_memdup(struct mempool *, const void *, uns) LIKE_MALLOC; char *mp_multicat(struct mempool *, ...) LIKE_MALLOC SENTINEL_CHECK; static inline char * LIKE_MALLOC -mp_strcat(struct mempool *mp, char *x, char *y) +mp_strcat(struct mempool *mp, const char *x, const char *y) { return mp_multicat(mp, x, y, NULL); }