lkml.org 
[lkml]   [2003]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] 2.6.0-test4 SEQ_START_TOKEN Add #define to seq_file.h (1/6)
From
Date
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.056 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site