more horizontal refactoring
[swftools.git] / lib / modules / swfcgi.c
index 21ca7ff..aa86e49 100644 (file)
@@ -23,6 +23,9 @@
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
+#include <stdlib.h>
+#include <stdio.h>
+#include "../rfxswf.h"
 
 #define ishex(x) (((x) >= '0' && (x) <= '9') || ((x) >= 'a' && (x) <= 'f') || ((x) >= 'A' && (x) <= 'F'))
 
@@ -121,7 +124,7 @@ static void swf_cgienv(unsigned char * var)
     newval = buf;
   }
   
-  putenv((const char *)newval);
+  putenv((char *)newval);
         
   if (oldval)
   { rfx_free(oldval);