Update of /cvsroot/netrek/client/cow
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25878

Modified Files:
	ChangeLog mkcflags.c system.mk.in 
Log Message:
mkcflags compilation fixes

Index: ChangeLog
===================================================================
RCS file: /cvsroot/netrek/client/cow/ChangeLog,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- ChangeLog	16 May 2006 06:25:25 -0000	1.29
+++ ChangeLog	20 May 2006 08:12:54 -0000	1.30
@@ -1,3 +1,7 @@
+Sat May 20 18:10:01 2006  James Cameron  <quozl at us.netrek.org>
+
+	* mkcflags.c (main): compilation fixes for -Wall.
+
 Tue May 16 16:21:29 2006  James Cameron  <quozl at us.netrek.org>
 
 	* x11window.c, socket.c, reserved.c, mkcflags.c, input.c, defaults.c:

Index: system.mk.in
===================================================================
RCS file: /cvsroot/netrek/client/cow/system.mk.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- system.mk.in	16 May 2006 12:59:38 -0000	1.8
+++ system.mk.in	20 May 2006 08:12:54 -0000	1.9
@@ -37,7 +37,7 @@
 # Flags for optimizing
 # (-O, -g, -O2)
 
-OPT             = -O2
+OPT             = -g -Wall
 
 # Flags for shared libraries
 

Index: mkcflags.c
===================================================================
RCS file: /cvsroot/netrek/client/cow/mkcflags.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mkcflags.c	16 May 2006 06:25:25 -0000	1.4
+++ mkcflags.c	20 May 2006 08:12:54 -0000	1.5
@@ -22,6 +22,9 @@
 /*****************************************************************************/
 /*
  * $Log$
+ * Revision 1.5  2006/05/20 08:12:54  quozl
+ * mkcflags compilation fixes
+ *
  * Revision 1.4  2006/05/16 06:25:25  quozl
  * some compilation fixes
  *
@@ -41,7 +44,6 @@
 {
   time_t seconds;
   struct tm *tm_date;
-  struct passwd *pw;
   char tbuff1[100], tbuff2[100];
   char pigcall[120];
   char *pigcallresp ();
@@ -64,7 +66,7 @@
   printf ("char cflags[]=\"%s\";\n", argv[1]);
   printf ("char arch[]=\"%s\";\n", argv[2]);
   printf ("char cdate[]=\"%s\";\n", tbuff2);
-  printf ("struct timeval tv_ctime={%u,0};\n", seconds);
+  printf ("struct timeval tv_ctime={%u,0};\n", (int) seconds);
   printf ("char cbugs[]=\"Send bugs/suggestion to: cow at netrek.org\";\n");
   printf ("char cowid[]=\"%s\";\n", pigcallresp (pigcall, tbuff2, argv[2]));
   exit (0);
@@ -77,8 +79,6 @@
      char *cdate;
      char *arch;
 {
-  char buf[20];
-
   sprintf (pigcall, "%s.%d, %s, %s, ", version, PATCHLEVEL, arch, cdate);
   /* ack .... gross short hand fomulas for compile options!!! */