diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-03-24 21:03:04 +0100 |
---|---|---|
committer | Dhaval Giani <dhaval.giani@gmail.com> | 2010-03-26 12:56:44 +0100 |
commit | ae2d17466f97891ca3e61e056e36f1e5a75421f2 (patch) | |
tree | 49b40bc5775344ff4926db8551018380999035d1 /src/api.c | |
parent | 691f3f98f6c249e01e1a5b336a19198482db0d55 (diff) | |
download | libcg-ae2d17466f97891ca3e61e056e36f1e5a75421f2.tar.gz libcg-ae2d17466f97891ca3e61e056e36f1e5a75421f2.tar.xz libcg-ae2d17466f97891ca3e61e056e36f1e5a75421f2.zip |
make functions without arguments proper C99 functions
Signed-off-by: Lennart Poettering <lennart@poettering.net>
Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
Diffstat (limited to 'src/api.c')
-rw-r--r-- | src/api.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -617,7 +617,7 @@ unlock: * test case and we can really make it thread safe. * */ -int cgroup_init() +int cgroup_init(void) { FILE *proc_mount = NULL; struct mntent *ent = NULL; @@ -686,7 +686,7 @@ int cgroup_init() temp_ent = (struct mntent *) malloc(sizeof(struct mntent)); if (!temp_ent) { - last_errno = errno; + last_errno = errno; ret = ECGOTHER; goto unlock_exit; } @@ -763,7 +763,7 @@ unlock_exit: return ret; } -static int cg_test_mounted_fs() +static int cg_test_mounted_fs(void) { FILE *proc_mount = NULL; struct mntent *ent = NULL; @@ -2388,7 +2388,7 @@ void cgroup_print_rules_config(FILE *fp) * is probably NOT thread safe (calls cgroup_parse_rules()). * @return 0 on success, > 0 on failure */ -int cgroup_reload_cached_rules() +int cgroup_reload_cached_rules(void) { /* Return codes */ int ret = 0; @@ -2414,7 +2414,7 @@ finished: * Initializes the rules cache. * @return 0 on success, > 0 on error */ -int cgroup_init_rules_cache() +int cgroup_init_rules_cache(void) { /* Return codes */ int ret = 0; @@ -2533,7 +2533,7 @@ const char *cgroup_strerror(int code) /** * Return last errno, which caused ECGOTHER error. */ -int cgroup_get_last_errno() +int cgroup_get_last_errno(void) { return last_errno; } |