]> thyrsus.com Git - intercal.git/commitdiff
Add missing const to strdup() in oil.y
authorArvid Norlander <anmaster@tele2.se>
Fri, 21 Nov 2008 00:48:06 +0000 (19:48 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 00:35:26 +0000 (20:35 -0400)
src/oil.y

index 6a247b1c87299c5a42a74ca4008e9e2a7dbda0ca..de751f09afb0ea37e58116b2105852c9dd08adc5 100644 (file)
--- 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);