linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Module rewrite 6/20: streq
@ 2002-09-25  3:01 Rusty Russell
  2002-09-26 13:26 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2002-09-25  3:01 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Name: streq implementation
Author: Rusty Russell
Status: Trivial
Depends: Misc/strcspn.patch.gz

D: I can't believe that after all these years I still make the "sense
D: of strcmp" mistake.  So it's time to reintroduce my favorite macro.

diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .24879-linux-2.5.38/include/linux/string.h .24879-linux-2.5.38.updated/include/linux/string.h
--- .24879-linux-2.5.38/include/linux/string.h	2002-09-24 21:23:55.000000000 +1000
+++ .24879-linux-2.5.38.updated/include/linux/string.h	2002-09-24 21:24:33.000000000 +1000
@@ -16,6 +16,7 @@ extern char * strpbrk(const char *,const
 extern char * strsep(char **,const char *);
 extern __kernel_size_t strspn(const char *,const char *);
 extern __kernel_size_t strcspn(const char *,const char *);
+#define streq(a,b) (strcmp((a),(b)) == 0)
 
 /*
  * Include machine specific inline routines

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

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

end of thread, other threads:[~2002-09-26 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-25  3:01 [PATCH] Module rewrite 6/20: streq Rusty Russell
2002-09-26 13:26 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).