summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2003-09-08 20:04:57 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-09-08 20:04:57 -0700
commit26fdde3addfc91036086003d1be9678ba33ab7ad (patch)
tree3369186e64d073b096eec85fb458a19ee95775e8 /include/linux
parent84972baffd596f488994dfe19596a1bbdd7ecaca (diff)
[PATCH] Add SEQ_START_TOKEN #define to seq_file.h
Code that includes seq_file.h uses a magic pointer "(void*)1" to start a header seq_printf. This patch adds a #define, so that people can start writing more readable code.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/seq_file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h
index 13df4750a271..e0d0e74ba4c2 100644
--- a/include/linux/seq_file.h
+++ b/include/linux/seq_file.h
@@ -65,5 +65,8 @@ int seq_path(struct seq_file *, struct vfsmount *, struct dentry *, char *);
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