* [PATCH] seq-file: Use SEEK_ macros instead of hardcoded numbers
@ 2013-01-22 12:01 Cyrill Gorcunov
0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2013-01-22 12:01 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel, Cyrill Gorcunov
From: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
fs/seq_file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6.git/fs/seq_file.c
===================================================================
--- linux-2.6.git.orig/fs/seq_file.c
+++ linux-2.6.git/fs/seq_file.c
@@ -308,9 +308,9 @@ loff_t seq_lseek(struct file *file, loff
mutex_lock(&m->lock);
m->version = file->f_version;
switch (whence) {
- case 1:
+ case SEEK_CUR:
offset += file->f_pos;
- case 0:
+ case SEEK_SET:
if (offset < 0)
break;
retval = offset;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-22 12:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22 12:01 [PATCH] seq-file: Use SEEK_ macros instead of hardcoded numbers Cyrill Gorcunov
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).