diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-10 12:58:38 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-10 12:58:38 -0500 |
commit | aaac7bc7fb88bb21ee46e42bc3b664a1163e0e6f (patch) | |
tree | 6e2ad9b2182e54dd9fd012ade55d966236589322 /spm.c | |
parent | 0627d1f093db4064c114e8fb2a2a8e824fb606bb (diff) | |
download | spmc-aaac7bc7fb88bb21ee46e42bc3b664a1163e0e6f.tar.gz |
Fix up function definitions
Diffstat (limited to 'spm.c')
-rw-r--r-- | spm.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -6,7 +6,7 @@ #include "spm.h" static int VERBOSE_MODE = 0; -char *get_user_conf_dir() { +char *get_user_conf_dir(void) { char *result = NULL; wordexp_t wexp; wordexp("~/.spm", &wexp, 0); @@ -25,7 +25,7 @@ char *get_user_conf_dir() { return result; } -char *get_user_config_file() { +char *get_user_config_file(void) { const char *filename = "spm.conf"; char template[PATH_MAX]; char *ucb = get_user_conf_dir(); @@ -45,7 +45,7 @@ char *get_user_config_file() { return strdup(template); } -char *get_user_tmp_dir() { +char *get_user_tmp_dir(void) { char template[PATH_MAX]; char *ucd = get_user_conf_dir(); sprintf(template, "%s%ctmp", ucd, DIRSEP); @@ -60,7 +60,7 @@ char *get_user_tmp_dir() { return strdup(template); } -char *get_user_package_dir() { +char *get_user_package_dir(void) { char template[PATH_MAX]; char *ucd = get_user_conf_dir(); sprintf(template, "%s%cpkgs", ucd, DIRSEP); @@ -1212,7 +1212,7 @@ int install(const char *destroot, const char *_package) { free(package); } -int init_config_global() { +void init_config_global(void) { SPM_GLOBAL.user_config_basedir = NULL; SPM_GLOBAL.user_config_file = NULL; SPM_GLOBAL.package_dir = NULL; @@ -1264,7 +1264,7 @@ int init_config_global() { } } -void free_global_config() { +void free_global_config(void) { if (SPM_GLOBAL.package_dir) { free(SPM_GLOBAL.package_dir); } @@ -1282,7 +1282,7 @@ void free_global_config() { } } -void show_global_config() { +void show_global_config(void) { printf("#---------------------------\n"); printf("#---- SPM CONFIGURATION ----\n"); printf("#---------------------------\n"); |