[linux-dvb] Asys P7131 Hybrid: DVB out of range
Andreas Oberritter
obi at linuxtv.org
Thu Sep 6 19:09:59 CEST 2007
Hello Johannes,
Johannes Stezenbach wrote:
> Since strtol() can legitimately return 0, LONG_MAX, or
> LONG_MIN (LLONG_MAX or LLONG_MIN for str‐ toll()) on both
> success and failure, the calling program should set errno to 0
> before the call, and then determine if an error occurred by
> checking whether errno has a non-zero value after the call.
>
> I think your patch is buggy, because errno is not guaranteed
> to be reset to zero after successful calls (see the errno manpage).
Right. Here's an updated patch.
@Manu: I am using hg anonymously and I don't even know whether I have
write access or not. It would be nice if you can commit it.
Regards,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strtol2.diff
Type: text/x-patch
Size: 694 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20070906/4f958db1/attachment.bin
More information about the linux-dvb
mailing list