All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Patch to change char * into char[]
@ 2004-03-12 16:44 Peter McCurdy
  2004-03-16  8:25 ` maximilian attems
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Peter McCurdy @ 2004-03-12 16:44 UTC (permalink / raw)
  To: kernel-janitors

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

Hello,

Attached is a patch to convert a few instances of 'char *foo = "bar";'
into 'char foo[] = "bar";'.  I started off with drivers/net/irda, I'll
do some more if everything is OK with this one.

Peter.



[-- Attachment #2: char-array-irda.patch --]
[-- Type: text/plain, Size: 2679 bytes --]

Binary files linux-2.6.4-kj-orig/drivers/net/irda/.irport.c.swp and linux-2.6.4/drivers/net/irda/.irport.c.swp differ
diff -ruN linux-2.6.4-kj-orig/drivers/net/irda/ali-ircc.c linux-2.6.4/drivers/net/irda/ali-ircc.c
--- linux-2.6.4-kj-orig/drivers/net/irda/ali-ircc.c	Fri Mar 12 10:15:01 2004
+++ linux-2.6.4/drivers/net/irda/ali-ircc.c	Fri Mar 12 10:47:24 2004
@@ -49,7 +49,7 @@
 #define CHIP_IO_EXTENT 8
 #define BROKEN_DONGLE_ID
 
-static char *driver_name = "ali-ircc";
+static char driver_name[] = "ali-ircc";
 
 /* Module parameters */
 static int qos_mtt_bits = 0x07;  /* 1 ms or more */
diff -ruN linux-2.6.4-kj-orig/drivers/net/irda/irport.c linux-2.6.4/drivers/net/irda/irport.c
--- linux-2.6.4-kj-orig/drivers/net/irda/irport.c	Fri Mar 12 10:15:01 2004
+++ linux-2.6.4/drivers/net/irda/irport.c	Fri Mar 12 10:47:32 2004
@@ -72,7 +72,7 @@
 static unsigned int qos_mtt_bits = 0x03;
 
 static struct irport_cb *dev_self[] = { NULL, NULL, NULL, NULL};
-static char *driver_name = "irport";
+static char driver_name[] = "irport";
 
 static inline void irport_write_wakeup(struct irport_cb *self);
 static inline int  irport_write(int iobase, int fifo_size, __u8 *buf, int len);
diff -ruN linux-2.6.4-kj-orig/drivers/net/irda/nsc-ircc.c linux-2.6.4/drivers/net/irda/nsc-ircc.c
--- linux-2.6.4-kj-orig/drivers/net/irda/nsc-ircc.c	Fri Mar 12 10:15:01 2004
+++ linux-2.6.4/drivers/net/irda/nsc-ircc.c	Fri Mar 12 10:46:51 2004
@@ -68,7 +68,7 @@
 #define CHIP_IO_EXTENT 8
 #define BROKEN_DONGLE_ID
 
-static char *driver_name = "nsc-ircc";
+static char driver_name[] = "nsc-ircc";
 
 /* Module parameters */
 static int qos_mtt_bits = 0x07;  /* 1 ms or more */
diff -ruN linux-2.6.4-kj-orig/drivers/net/irda/via-ircc.c linux-2.6.4/drivers/net/irda/via-ircc.c
--- linux-2.6.4-kj-orig/drivers/net/irda/via-ircc.c	Fri Mar 12 10:15:01 2004
+++ linux-2.6.4/drivers/net/irda/via-ircc.c	Fri Mar 12 10:46:40 2004
@@ -65,7 +65,7 @@
 #define CHIP_IO_EXTENT 8
 #define BROKEN_DONGLE_ID
 
-static char *driver_name = "via-ircc";
+static char driver_name[] = "via-ircc";
 
 /* Module parameters */
 static int qos_mtt_bits = 0x07;	/* 1 ms or more */
diff -ruN linux-2.6.4-kj-orig/drivers/net/irda/w83977af_ir.c linux-2.6.4/drivers/net/irda/w83977af_ir.c
--- linux-2.6.4-kj-orig/drivers/net/irda/w83977af_ir.c	Fri Mar 12 10:15:01 2004
+++ linux-2.6.4/drivers/net/irda/w83977af_ir.c	Fri Mar 12 10:47:02 2004
@@ -69,7 +69,7 @@
 #define CONFIG_USE_W977_PNP        /* Currently needed */
 #define PIO_MAX_SPEED       115200 
 
-static char *driver_name = "w83977af_ir";
+static char driver_name[] = "w83977af_ir";
 static int  qos_mtt_bits = 0x07;   /* 1 ms or more */
 
 #define CHIP_IO_EXTENT 8

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

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

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

end of thread, other threads:[~2004-03-17  1:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 16:44 [Kernel-janitors] Patch to change char * into char[] Peter McCurdy
2004-03-16  8:25 ` maximilian attems
2004-03-16 19:23 ` Domen Puncer
2004-03-16 20:18 ` maximilian attems
2004-03-17  1:24 ` 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.