* [KJ] [PATCH] char* : drivers/char/agp/intel-agp.c
@ 2005-04-01 12:20 Christophe Lucas
2005-04-04 11:37 ` Domen Puncer
0 siblings, 1 reply; 2+ messages in thread
From: Christophe Lucas @ 2005-04-01 12:20 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
Description:
String form : char foo[] = "blah" is better than char *foo = "blah"
Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
[-- Attachment #2: 2.6.12-rc1-pointer_drivers_char_agp_intel-agp.c.patch --]
[-- Type: text/plain, Size: 469 bytes --]
diff -urpN -X dontdiff a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
--- a/drivers/char/agp/intel-agp.c 2005-03-18 02:34:12.000000000 +0100
+++ b/drivers/char/agp/intel-agp.c 2005-04-01 12:08:36.751735144 +0200
@@ -1532,7 +1532,7 @@ static int __devinit agp_intel_probe(str
const struct pci_device_id *ent)
{
struct agp_bridge_data *bridge;
- char *name = "(unknown)";
+ char name[] = "(unknown)";
u8 cap_ptr = 0;
struct resource *r;
[-- 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] 2+ messages in thread
* Re: [KJ] [PATCH] char* : drivers/char/agp/intel-agp.c
2005-04-01 12:20 [KJ] [PATCH] char* : drivers/char/agp/intel-agp.c Christophe Lucas
@ 2005-04-04 11:37 ` Domen Puncer
0 siblings, 0 replies; 2+ messages in thread
From: Domen Puncer @ 2005-04-04 11:37 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 772 bytes --]
On 01/04/05 14:20 +0200, Christophe Lucas wrote:
> Description:
> String form : char foo[] = "blah" is better than char *foo = "blah"
>
> Signed-off-by: Christophe Lucas <clucas@rotomalug.org>
> diff -urpN -X dontdiff a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c
> --- a/drivers/char/agp/intel-agp.c 2005-03-18 02:34:12.000000000 +0100
> +++ b/drivers/char/agp/intel-agp.c 2005-04-01 12:08:36.751735144 +0200
> @@ -1532,7 +1532,7 @@ static int __devinit agp_intel_probe(str
> const struct pci_device_id *ent)
> {
> struct agp_bridge_data *bridge;
> - char *name = "(unknown)";
> + char name[] = "(unknown)";
A few lines below there's a
name = "440LX";
... so i don't think this will even compile.
Same goes for next, acpi patch.
Domen
[-- Attachment #2: 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] 2+ messages in thread
end of thread, other threads:[~2005-04-04 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-01 12:20 [KJ] [PATCH] char* : drivers/char/agp/intel-agp.c Christophe Lucas
2005-04-04 11:37 ` Domen Puncer
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.