linux-mips
[Top] [All Lists]

[PATCH]: global variables are automatically initialized to 0

To: Ralf Baechle <ralf@linux-mips.org>, mipslist <linux-mips@linux-mips.org>
Subject: [PATCH]: global variables are automatically initialized to 0
From: Juan Quintela <quintela@mandrakesoft.com>
Date: 19 Dec 2002 12:03:09 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi
        globals are already initialized to 0.

Later, Juan.

Index: drivers/sgi/char/sgicons.c
===================================================================
RCS file: /home/cvs/linux/drivers/sgi/char/sgicons.c,v
retrieving revision 1.13.2.1
diff -u -r1.13.2.1 sgicons.c
--- drivers/sgi/char/sgicons.c  6 Aug 2002 01:51:52 -0000       1.13.2.1
+++ drivers/sgi/char/sgicons.c  19 Dec 2002 10:38:05 -0000
@@ -14,8 +14,8 @@
 #include "gconsole.h"
 
 /* This is the system graphics console (the first adapter found) */
-struct console_ops *gconsole = 0;
-struct console_ops *real_gconsole = 0;
+struct console_ops *gconsole;
+struct console_ops *real_gconsole;
 
 void
 enable_gconsole (void)


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH]: global variables are automatically initialized to 0, Juan Quintela <=