From 26fdde3addfc91036086003d1be9678ba33ab7ad Mon Sep 17 00:00:00 2001 From: Joe Perches Date: Mon, 8 Sep 2003 20:04:57 -0700 Subject: [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. --- include/linux/seq_file.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') 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 -- cgit v1.2.3