From: Dan Harkless Date: Tue, 14 Mar 2000 20:50:19 +0000 (+0000) Subject: Changed strdup() in strdup.c to take a _const_ char*. Don't know why this X-Git-Tag: nmh-1_0~60 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=898bc853c79a8a8506f39c6f57a7febe98b6afe4;p=mmh Changed strdup() in strdup.c to take a _const_ char*. Don't know why this didn't hit anyone before, but I wasn't able to compile on Solaris 2.6 without doing this, due to a "previous declaration" error. --- diff --git a/ChangeLog b/ChangeLog index cde4c5e..8d7c45c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -47,6 +47,11 @@ Tue Mar 14 12:41:48 2000 Dan Harkless * Added scan.MMDDYY and scan.YYYYMMDD format files. + * Changed strdup() in strdup.c to take a _const_ char*. Don't + know why this didn't hit anyone before, but I wasn't able to + compile on Solaris 2.6 without doing this, due to a "previous + declaration" error. + Mon Mar 13 21:32:00 2000 Dan Harkless * Applied Sullivan N. Beck 's mhshow-suffix patch: diff --git a/sbr/strdup.c b/sbr/strdup.c index 05a017e..18df010 100644 --- a/sbr/strdup.c +++ b/sbr/strdup.c @@ -9,7 +9,7 @@ char * -strdup (char *str) +strdup (const char *str) { char *cp; size_t len;