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>
const char *name, int64_t value)
{
int i;
- unsigned ret;
+ int ret;
if (!controller)
return ECGINVAL;
const char *name, u_int64_t value)
{
int i;
- unsigned ret;
+ int ret;
if (!controller)
return ECGINVAL;
const char *name, bool value)
{
int i;
- unsigned ret;
+ int ret;
if (!controller)
return ECGINVAL;