Skip to contentSkip to conversation

Trivial patch2:changing const char foo* to const

PATCH RESEND New Surya 1 participant 1 message Apr 17, 2007

Subsystems (3)
lore
Share & tools
lore

Surya

author
#0 lore raw

PATCH RESEND 1/1 Trivial patch2:changing const char foo* to const

Hi,
Resending the patch. I was using a certificate which corrupted the patch in the previous mail.
Once I removed the cert the patch is getting inserted fine in evolution.I am not sure what character set I should be using.

the patch below changes the const char *foo = "xyz" to static const char foo[] = "xyz". Modifications suggested by Jeff Garzik.

---

fs/binfmt_misc.c +1 -1
index e6f5799..a441d7c 100644
@@ -445,7 +445,7 @@ static void entry_status(Node *e, char *page)
 {
 	char *dp;
 	char *status = "disabled";
-	const char * flags = "flags: ";
+	static const char flags[] = "flags: ";
 
 	if (test_bit(Enabled, &e->flags))
 		status = "enabled";
Signature · 6 lines
surya.
17/04/2007
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors