From e29cb16a42c87359bed6c176156a7936e8784848 Mon Sep 17 00:00:00 2001 From: Arvid Norlander Date: Thu, 20 Nov 2008 19:48:06 -0500 Subject: [PATCH] Add missing const to strdup() in oil.y --- src/oil.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oil.y b/src/oil.y index 6a247b1..de751f0 100644 --- a/src/oil.y +++ b/src/oil.y @@ -46,7 +46,7 @@ LICENSE TERMS /* Define strdup if it isn't available */ #ifndef HAVE_STRDUP -char* strdup(char* s) +char* strdup(const char* s) { char* t=malloc(strlen(s)+1); if(t) strcpy(t,s); -- 2.43.0