Use $CC and $CFLAGS.

Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Fixed -Wall fluff.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgmanager_get_my_cgroup() fixes.

- Handle NULL controller and value.
- Use NIH memory allocation to avoid crash.

Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgmanager.c memory management improvements.

- cgmanager_get_pid_cgroup(): Use NIH memory allocation to avoid crash.
- cgmanager_create(): USE NIH memory allocation to simplify memory
  management.

Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Re-add copyright symbol again.

Signed-off-by: James Hunt <james.hunt@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>