]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] namespace pollution in HDLC driver
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Jan 2003 12:12:19 +0000 (04:12 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 13 Jan 2003 12:12:19 +0000 (04:12 -0800)
From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>

  A global variable should not be called 'debuglevel'. It can
  be made static since it is only used in one file.

drivers/char/n_hdlc.c

index d3003e8df81ef0a4b2d87c36713c543a1bbca078..d060056f86c9f5144eedeff803733f423c3dd737 100644 (file)
@@ -185,10 +185,10 @@ MODULE_PARM(maxframe, "i");
 
 /* debug level can be set by insmod for debugging purposes */
 #define DEBUG_LEVEL_INFO       1
-int debuglevel=0;
+static int debuglevel;
 
 /* max frame size for memory allocations */
-ssize_t        maxframe=4096;
+static ssize_t maxframe=4096;
 
 /* TTY callbacks */