Loads of diffs.

Peter Naulls peter at chocky.org
Tue Jan 29 14:19:57 PST 2002


Ok, I've got about 64K worth of diffs after fixing Unixlib from turning
on strong warnings.  I think it's better to post these piecemeal, even
though there will be so many so that people can watch for mistakes, so
bear with me.

Here's the first, fix for nested extern and const char assignment.

Index: source/unix/unix.c
===================================================================
RCS file: /usr/local/cvsroot/gccsdk/unixlib/source/unix/unix.c,v
retrieving revision 1.2.2.7
diff -u -r1.2.2.7 unix.c
--- source/unix/unix.c  2001/09/14 14:01:17     1.2.2.7
+++ source/unix/unix.c  2002/01/29 22:15:07
@@ -111,12 +111,13 @@
   return result;
 }
 
+extern char *__cli;
+
 /* Initialise the UnixLib world.  */
 void __unixinit (void)
 {
   int i, __cli_size, cli_size = 0, newproc = 0, regs[10];
   char *cli = NULL;
-  extern char *__cli;
 
 #ifdef DEBUG
   __os_print ("-- __unixinit: __u = "); __os_prhex ((unsigned int) __u);
@@ -419,7 +420,7 @@
 initialise_unix_io (struct proc *process)
 {
   int i;
-  char *tty;
+  const char *tty;
 
   /* Set all file descriptors to unallocated status.  */
   for (i = 0; i < MAXFD; i++)
@@ -675,7 +676,7 @@
      is a space before this chevron, then it *must* be referring
      to a re-direction operator.
 
-     An array index of -1 is safe here, becuase its impossible for
+     An array index of -1 is safe here, becuase it's impossible for
      a right chevron to appear at the start of the command line
      (unless you are the idiot who regularly uses > for a filename). */
   if (redir[0] == '>' && redir[-1] == ' ')


-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 RISC OS Projects Initiative  -  http://www.chocky.org/initiative/
 Java for RISC OS and ARM     -  http://www.chocky.org/java/
 Debian Linux on RiscPCs      -  http://www.chocky.org/debian/
------------------------------------------------------------------------



More information about the gcc mailing list