From 898bc853c79a8a8506f39c6f57a7febe98b6afe4 Mon Sep 17 00:00:00 2001 From: Dan Harkless Date: Tue, 14 Mar 2000 20:50:19 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ sbr/strdup.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 1.7.10.4