[fprint] (NEW) Secugen FDU2000 Driver

Gustavo Chain g at 0xff.cl
Thu Dec 20 20:26:45 GMT 2007


El Wed, 19 Dec 2007 19:13:36 +0000
Daniel Drake <dan at reactivated.net> escribió:

> Gustavo Chain wrote:
> > El Wed, 19 Dec 2007 14:38:23 +0000
> > Daniel Drake <dan at reactivated.net> escribió:
> > 
> >> Gustavo Chain wrote:
> >>> I've implemented memmem as a driver function.
> >> OK. I looked too and it doesn't look like glib offers an
> >> equivalent. Maybe I'll contribute this at some point.
> > That's why I've implemented into driver
> >>>> You should probably do error checking in bulk_write_safe()
> >>>> callers as this may help detect weird bugs early on in future.
> >>> Implemented as macro (may be isn't nice)
> >> I'd rather see it "open coded".
> > What did you mean with "open coded" (My english isn't the best)
> 
> Instead of using a macro, code each call returning it's result into a 
> variable. Then check the value of the variable, and if it's an error, 
> abort. For those cases, add in an error message for conditions that
> you think are likely to happen at some point.
> 
> This is pretty much what your macro does, but I think it's better to 
> avoid the macro and just write this code openly - make it obvious
> that you're checking for errors and how errors are handled.
> 
> Thanks,
> Daniel
> 

please, check it out.



-- 
Gustavo Chaín Dumit
http://0xff.cl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdu2000.c
Type: text/x-csrc
Size: 6984 bytes
Desc: not available
Url : http://lists.reactivated.net/pipermail/fprint/attachments/20071220/b2da90f1/fdu2000.bin


More information about the fprint mailing list