fixup: dfsv2: seq: aligned proto of lseek to manual

In manual, the prototype of lseek is

`off_t lseek(int fd, off_t offset, int whence);`

where the return type is `off_t` but not ssize_t.

Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
Shell 2024-09-14 16:21:36 +08:00 committed by Meco Man
parent cadcd81104
commit 2cbd5889d1
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ static inline void dfs_seq_setwidth(struct dfs_seq_file *seq, size_t size)
int dfs_seq_open(struct dfs_file *file, const struct dfs_seq_ops *ops); int dfs_seq_open(struct dfs_file *file, const struct dfs_seq_ops *ops);
ssize_t dfs_seq_read(struct dfs_file *file, void *buf, size_t size, off_t *pos); ssize_t dfs_seq_read(struct dfs_file *file, void *buf, size_t size, off_t *pos);
ssize_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence); off_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence);
int dfs_seq_release(struct dfs_file *file); int dfs_seq_release(struct dfs_file *file);
int dfs_seq_write(struct dfs_seq_file *seq, const void *data, size_t len); int dfs_seq_write(struct dfs_seq_file *seq, const void *data, size_t len);

View File

@ -256,7 +256,7 @@ Enomem:
goto Done; goto Done;
} }
ssize_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence) off_t dfs_seq_lseek(struct dfs_file *file, off_t offset, int whence)
{ {
struct dfs_seq_file *seq = file->data; struct dfs_seq_file *seq = file->data;
off_t retval = -EINVAL; off_t retval = -EINVAL;