libcgroup.h includes some header files, which are not then used. These should
be removed, resp. moved to the source files where they are actually needed.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
__BEGIN_DECLS
#include <grp.h>
-#include <linux/types.h>
#include <stdbool.h>
#include <stdio.h>
-#include <sys/stat.h>
#include <sys/types.h>
-#include <unistd.h>
-#include <limits.h>
#include <linux/cn_proc.h>
#ifndef _GNU_SOURCE
#include "config.h"
#include "libcgroup.h"
#include <linux/connector.h>
+#include <linux/cn_proc.h>
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#include <pwd.h>
#include <sys/types.h>
#include <errno.h>
+#include <unistd.h>
#include "tools-common.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <unistd.h>
#include "tools-common.h"
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
-
+#include <sys/stat.h>
#include <libcgroup.h>
#include "../config.h"
+#include <unistd.h>
#define SIZE 100 /* Max size of a message to be printed */
#define NUM_MSGS 20 /* Number of such messsages */