All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH 2.6.11.10] arch/cris: fixes static strings declaration
@ 2005-05-26 15:25 Ricardo Nabinger Sanchez
  2005-05-26 16:35 ` Alexey Dobriyan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ricardo Nabinger Sanchez @ 2005-05-26 15:25 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

o Fixes strings declaration from char *str = ""; to char str[] = "";,
  avoiding the extra pointer, as noted by Jeff Garzik.  The strings'
  contents are not changed after declared.

 arch/cris/arch-v10/drivers/axisflashmap.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Signed-off-by: Ricardo Nabinger Sanchez <rnsanchez@terra.com.br>

[-- Attachment #2: string_fix_arch_cris.patch --]
[-- Type: text/plain, Size: 781 bytes --]

diff -urNp -X dontdiff linux-2.6.11.10/arch/cris/arch-v10/drivers/axisflashmap.c mod-linux-2.6.11.10/arch/cris/arch-v10/drivers/axisflashmap.c
--- linux-2.6.11.10/arch/cris/arch-v10/drivers/axisflashmap.c	2005-05-16 14:50:30.000000000 -0300
+++ mod-linux-2.6.11.10/arch/cris/arch-v10/drivers/axisflashmap.c	2005-05-25 23:59:46.000000000 -0300
@@ -393,7 +393,7 @@ static int __init init_axis_flash(void)
 	struct partitiontable_head *ptable_head = NULL;
 	struct partitiontable_entry *ptable;
 	int use_default_ptable = 1; /* Until proven otherwise. */
-	const char *pmsg = "  /dev/flash%d at 0x%08x, size 0x%08x\n";
+	const char pmsg[] = "  /dev/flash%d at 0x%08x, size 0x%08x\n";
 
 	if (!(mymtd = flash_probe())) {
 		/* There's no reason to use this module if no flash chip can

[-- Attachment #3: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-05-26 18:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-26 15:25 [KJ] [PATCH 2.6.11.10] arch/cris: fixes static strings declaration Ricardo Nabinger Sanchez
2005-05-26 16:35 ` Alexey Dobriyan
2005-05-26 17:21 ` Ricardo Nabinger Sanchez
2005-05-26 17:58 ` Alexey Dobriyan
2005-05-26 18:27 ` walter harms
2005-05-26 18:47 ` Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.