Checks to see if unsigned integers < 0

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Jul 15 03:28:46 MDT 2013


On Fri, Jul 12, 2013 at 08:36:13PM +0200, Herwin Weststrate wrote:
> (Issues were found compiling with clang, so it's a kind of static
> code analysis)
> 
> 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.

Question -- is it guaranteed by Posix that uid_t is unsigned?

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list