X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fmempool-str.c;h=176ff3e21e046169c1420ae8402910694544b9f9;hb=90afcc18dbf7cb6c682e1efb994007f03e304422;hp=62fb18baabed110e5adbba1f5fb7cf62dcdcb2bc;hpb=47a0795e8a28e8ad6ff55cda89e300267d9e590c;p=libucw.git diff --git a/lib/mempool-str.c b/lib/mempool-str.c index 62fb18ba..176ff3e2 100644 --- a/lib/mempool-str.c +++ b/lib/mempool-str.c @@ -14,7 +14,7 @@ #include char * -mp_strdup(struct mempool *p, char *s) +mp_strdup(struct mempool *p, const char *s) { uns l = strlen(s) + 1; char *t = mp_alloc_fast_noalign(p, l); @@ -23,7 +23,7 @@ mp_strdup(struct mempool *p, char *s) } void * -mp_memdup(struct mempool *p, void *s, uns len) +mp_memdup(struct mempool *p, const void *s, uns len) { void *t = mp_alloc_fast(p, len); memcpy(t, s, len);