On 11/15/2010 12:54 PM, Dhaval Giani wrote:
> 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<[email protected]>
> Signed-off-by: Dhaval Giani<[email protected]>
Acked-By: Jan Safranek <[email protected]>
>
> ---
> src/wrapper.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Index: libcg/src/wrapper.c
> ===================================================================
> --- libcg.orig/src/wrapper.c
> +++ libcg/src/wrapper.c
> @@ -436,7 +436,7 @@ int cgroup_set_value_int64(struct cgroup
> const char *name, int64_t value)
> {
> int i;
> - unsigned ret;
> + int ret;
>
> if (!controller)
> return ECGINVAL;
> @@ -484,7 +484,7 @@ int cgroup_set_value_uint64(struct cgrou
> const char *name, u_int64_t value)
> {
> int i;
> - unsigned ret;
> + int ret;
>
> if (!controller)
> return ECGINVAL;
> @@ -538,7 +538,7 @@ int cgroup_set_value_bool(struct cgroup_
> const char *name, bool value)
> {
> int i;
> - unsigned ret;
> + int ret;
>
> if (!controller)
> return ECGINVAL;
>
>
>
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel