This commit changes cgroup_process_v1_mnt() from static to STATIC
to allow it to be unit tested.
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Acked-by: Dhaval Giani <dhaval.giani@oracle.com>
* @param ent File system description of cgroup mount being processed
* @param mnt_tbl_idx cg_mount_table index
*/
-static int cgroup_process_v1_mnt(char *controllers[], struct mntent *ent,
+STATIC int cgroup_process_v1_mnt(char *controllers[], struct mntent *ent,
int *mnt_tbl_idx)
{
char *strtok_buffer = NULL, *mntopt = NULL;
#include <fts.h>
#include <libcgroup.h>
#include <limits.h>
+#include <mntent.h>
#include <pthread.h>
#include <sys/stat.h>
#include <sys/types.h>
bool cgroup_compare_wildcard_procname(const char * const rule_procname,
const char * const procname);
+int cgroup_process_v1_mnt(char *controllers[], struct mntent *ent,
+ int *mnt_tbl_idx);
+
#endif /* UNIT_TEST */
__END_DECLS