* [KJ] [PATCH] string initialization in ForeRunnerHE driver
@ 2006-10-01 11:14 Andi Drebes
0 siblings, 0 replies; only message in thread
From: Andi Drebes @ 2006-10-01 11:14 UTC (permalink / raw)
To: kernel-janitors
I had a look at http://www.kerneljanitors.org/TODO
Jeff Garzik writes that in most cases a string initialization like char
foo[] = "blah"; is preferred to an initialization like char *foo = "blah";
So I grep'd around the kernel sources and found an initialization in the
latter style in drivers/atm/he.c. This is my first patch ever sent to the
kj-mailing-list. I hope everything is fine with the patch-format and so on.
If not, please let me know...
I don't know if this patch is really needed. However, here it is (tested by
compilation):
Signed-off-by: Andi Drebes <webmaster@programmierforen.de>
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index f2511b4..f16a1ce 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -101,7 +101,7 @@ #endif /* HE_DEBUG */
/* version definition */
-static char *version = "$Id: he.c,v 1.18 2003/05/06 22:57:15 chas Exp $";
+static char version[] = "$Id: he.c,v 1.18 2003/05/06 22:57:15 chas Exp $";
/* declarations */
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-01 11:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-01 11:14 [KJ] [PATCH] string initialization in ForeRunnerHE driver Andi Drebes
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.