X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fmempool-str.c;h=176ff3e21e046169c1420ae8402910694544b9f9;hb=534019614dd611e7df29a0c8c59f2a869a2c0c39;hp=62fb18baabed110e5adbba1f5fb7cf62dcdcb2bc;hpb=cbaeb60241cd69c455b64ffecb818274d830f4cb;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);