lkml.org 
[lkml]   [2008]   [Apr]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 13 Apr 2008 10:11:44 +0100
FromAlan Cox <>
SubjectRe: [PATCH 3/7] omfs: add directory routines
> +static int omfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
> +{
> +	struct inode *dir = filp->f_dentry->d_inode;
> +	struct buffer_head *bh = NULL;

> +	if (filp->f_pos >> 32)
> +		goto success;

f_pos may be 32bit in which case >> 32 does not have defined behaviour in
C.


Alan


\
 
 \ /
  Last update: 2008-04-13 11:19    [from the cache]
©2003-2008