mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] missing static in lib/vsprinf.c
@ 2002-07-12 13:27 Andrey Panin
  0 siblings, 0 replies; only message in thread
From: Andrey Panin @ 2002-07-12 13:27 UTC (permalink / raw)
  To: trivial; +Cc: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 346 bytes --]

Hi all,

attached patch adds missing static modifiers for small_digits[] and 
large_digits[] arrays in the number() function from lib/vsprintf.c

Patch against 2.5.25, should apply to 2.4.x.
Please consider applying.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net

[-- Attachment #1.2: patch-vsprintf --]
[-- Type: text/plain, Size: 635 bytes --]

diff -urN -X /usr/share/dontdiff linux.vanilla/lib/vsprintf.c linux/lib/vsprintf.c
--- linux.vanilla/lib/vsprintf.c	Thu Jun 20 12:55:58 2002
+++ linux/lib/vsprintf.c	Fri Jul 12 13:25:11 2002
@@ -131,8 +131,8 @@
 {
 	char c,sign,tmp[66];
 	const char *digits;
-	const char small_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
-	const char large_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+	static const char small_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
+	static const char large_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 	int i;
 
 	digits = (type & LARGE) ? large_digits : small_digits;

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-12 13:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-12 13:27 [PATCH] missing static in lib/vsprinf.c Andrey Panin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®