[PATCH] DLIST_FIND
Amin Azez
azez at ufomechanic.net
Thu Jan 24 17:29:28 GMT 2008
Does this look sane to anyone?
DLIST_FIND (attached)
Anyone care to apply it?
Useful in this fashion:
struct proxy_file *f;
struct proxy_private *private = ntvfs->private_data;
/* the handle reference is lost, but we can look it up from
the file number we have */
DLIST_FIND(private->files, f, f->fnum==io->generic.in.file.fnum);
Sam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dlist-find.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080124/03fa28d5/dlist-find.bin
More information about the samba-technical
mailing list