CVS: tmda-cgi configure,1.21,1.22 tmda-cgi.c,1.14,1.15

Jim Ramsay <[email protected]> Thu, 21 Sep 2006 10:49:53 -0700
Newsgroups gmane.mail.spam.tmda.cvs
Message-ID <[email protected]>
Update of /cvsroot/tmda/tmda-cgi
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv13295

Modified Files:
	configure tmda-cgi.c 
Log Message:
Updated for gcc-4.1


Index: configure
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/configure,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- configure	11 Mar 2004 15:21:39 -0000	1.21
+++ configure	21 Sep 2006 17:49:51 -0000	1.22
@@ -476,8 +476,8 @@
 
 all: tmda.cgi
 
-tmda.cgi: tmda-cgi.h
-	$(CC) -I . %(Path)stmda-cgi.c -o tmda.cgi
+tmda.cgi: %(Path)stmda-cgi.c tmda-cgi.h
+	$(CC) -Wall -I . %(Path)stmda-cgi.c -o tmda.cgi
 	chmod %(Perm)s tmda.cgi
 
 install: $(DESTDIR)/%(TargFN)s

Index: tmda-cgi.c
===================================================================
RCS file: /cvsroot/tmda/tmda-cgi/tmda-cgi.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- tmda-cgi.c	21 May 2003 16:07:59 -0000	1.14
+++ tmda-cgi.c	21 Sep 2006 17:49:51 -0000	1.15
@@ -19,7 +19,9 @@
 along with TMDA; if not, write to the Free Software Foundation, Inc.,
 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
 
+#include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 #include <fcntl.h>
 #include <tmda-cgi.h>
 
@@ -46,7 +48,7 @@
 
   if (!chdir(INSTALL))
   {
-    execl(PYTHON, PYTHON, "tmda-cgi.py", 0);
+    execl(PYTHON, PYTHON, "tmda-cgi.py", NULL);
     return 0;
   }
   printf("Content-type: text/html\n\nCannot change to directory: %s", INSTALL);