diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-14 15:44:48 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-14 15:44:48 +0200 |
commit | ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1 (patch) | |
tree | c74e961f7780a4415bb9a178527f8d0e51a430e4 /src/ckutil.h | |
parent | 822f7d839a1b5dc967cfb2988170ed836ae8c0d8 (diff) | |
download | ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.tar.gz ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.tar.bz2 ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.zip |
Remove extern keyword
Diffstat (limited to 'src/ckutil.h')
-rw-r--r-- | src/ckutil.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/ckutil.h b/src/ckutil.h index 3003a45..d29b302 100644 --- a/src/ckutil.h +++ b/src/ckutil.h @@ -48,55 +48,55 @@ /* Create the config name to be used when storing a new config to * the VC or SCRT dir */ -extern void str_make_ck_config_name(char *ret, const char *path, +void str_make_ck_config_name(char *ret, const char *path, const char *progName); /* Joins the two strings into ret, with a '/' in between */ -extern void str_join_dirname_with_basename(char *ret, const char *path, +void str_join_dirname_with_basename(char *ret, const char *path, const char *progName); /* Returns 1 if str contains only whitespace, or nothing, * else returns 0. */ -extern int str_is_empty(const char *s); +int str_is_empty(const char *s); -extern char *swap_tilde_with_home(char *ret, const char *s, const char *home); -extern char *swap_home_with_tilde(char *ret, const char *s, const char *home); +char *swap_tilde_with_home(char *ret, const char *s, const char *home); +char *swap_home_with_tilde(char *ret, const char *s, const char *home); /*********************/ /* utility functions */ /*********************/ /* Returns 1 if path is a directory, else returns 0. */ -extern int util_is_dir(const char *path); +int util_is_dir(const char *path); /* Returns 1 if file(or dir) exists, else returns 0. * Pass a char array in absPath to get the absolute path * of the file it it exists. Pass NULL if no need. */ -extern int util_file_exists(const char *path, char *absPath); +int util_file_exists(const char *path, char *absPath); /* Returns 1 if file(or dir) is readable and writable, * else returns 0. */ -extern int util_is_file_rw(const char *path); +int util_is_file_rw(const char *path); /* Returns 1 if file is link 0 otherwise */ -extern int util_is_file_link(const char *path); +int util_is_file_link(const char *path); /* Wrapper around mkdir with 0775 permissions */ -extern void util_mkdir(const char *path); +void util_mkdir(const char *path); /* Moves file from path, to destination * keeping the same permissions. * Only deletes original on successful copy */ -extern int util_move_file(const char *path, const char* dest); +int util_move_file(const char *path, const char* dest); /* Wrapper around symlink() */ -extern int util_symlink_file(const char *path, const char* dest); +int util_symlink_file(const char *path, const char* dest); /* Chnage owner and group of `new` and make it like `old`*/ -extern int util_own_grp_copy(const char *new, const char* old); +int util_own_grp_copy(const char *new, const char* old); -extern int util_is_link_owned_by_root(const char *link); +int util_is_link_owned_by_root(const char *link); /* yes is 1, no is 0 */ -extern int y_or_n_prompt(); +int y_or_n_prompt(); #endif // CKUTIL_H |