netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.6.0-test4 SEQ_START_TOKEN Add #define to seq_file.h (1/6)
@ 2003-09-06  1:46 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2003-09-06  1:46 UTC (permalink / raw)
  To: linux-kernel, netdev

Code that includes seq_file.h use a magic pointer "(void*)1"
to start a header seq_printf.

These patches convert the magic pointer use to a #define

diff -urN linux-2.6.0-test4/include/linux/seq_file.h SEQ_START_TOKEN/include/linux/seq_file.h
-- linux-2.6.0-test4/include/linux/seq_file.h	2003-08-22 17:02:49.000000000 -0700
+++ SEQ_START_TOKEN/include/linux/seq_file.h	2003-09-04 17:28:19.000000000 -0700
@@ -65,5 +65,8 @@
 int single_open(struct file *, int (*)(struct seq_file *, void *), void *);
 int single_release(struct inode *, struct file *);
 int seq_release_private(struct inode *, struct file *);
+
+#define SEQ_START_TOKEN ((void *)1)
+
 #endif
 #endif

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-06  1:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-06  1:46 [PATCH] 2.6.0-test4 SEQ_START_TOKEN Add #define to seq_file.h (1/6) Joe Perches

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).