Checks to see if unsigned integers < 0

Aurélien Aptel aurelien.aptel at
Sun Jul 14 03:16:45 MDT 2013

On Fri, Jul 12, 2013 at 8:36 PM, Herwin Weststrate
<herwin at> wrote:
> A number of times some checks are run to see if an unsigned integer is
> smaller than zero. Of course this cannot be true, this patch removes these
> checks.

Samba devs might be interested in coccinelle [1] which lets you
automate the making of this kind of check/patch. It's a powerful tool
that was made with the Linux kernel in mind but I know it has been
used in other projects like in GNU Emacs.

  nice tutorial:

More information about the samba-technical mailing list