]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
v2 [patch 2/6] wrapper.c: correct the return types
authorDhaval Giani <dhaval.giani@gmail.com>
Tue, 16 Nov 2010 13:29:47 +0000 (14:29 +0100)
committerDhaval Giani <dhaval.giani@gmail.com>
Tue, 16 Nov 2010 15:39:16 +0000 (16:39 +0100)
commitb0dd39197e0bb89d843e715bd438a30eefa7cd70
tree161b3026a84e8cdb8f028e0bc5901d8df5a8d596
parent2f70ad595240d11e419d24756df15bcd30cef4c9
v2 [patch 2/6] wrapper.c: correct the return types

Steve Grubb was kind enough to do a review at
http://article.gmane.org/gmane.comp.lib.libcg.devel/2485
and pointed out that we were checking for unsigned values to be
negative. That is of course wrong, and we need to actually be
checking integers. Correct the return type so that the check
is valid once more.

Reported-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
Acked-By: Jan Safranek <jsafrane@redhat.com>
src/wrapper.c