From: Arvid Norlander Date: Fri, 21 Nov 2008 00:48:06 +0000 (-0500) Subject: Add missing const to strdup() in oil.y X-Git-Tag: 0.29~167 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=e29cb16a42c87359bed6c176156a7936e8784848;p=intercal.git Add missing const to strdup() in oil.y --- 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);