From ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1 Mon Sep 17 00:00:00 2001 From: gramanas Date: Wed, 14 Nov 2018 15:44:48 +0200 Subject: Remove extern keyword --- src/ckutil.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/ckutil.h') 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 -- cgit v1.2.3