Small tweaks to files

This commit is contained in:
Jonathan Hodgson 2022-01-10 09:41:37 +00:00
parent 0e53f180ad
commit d49e86faff
3 changed files with 20 additions and 15 deletions

View file

@ -4,7 +4,7 @@
* Checks if the given path exists by calling stat().
*
*/
static bool path_exists(const char *path) {
bool path_exists(const char *path) {
struct stat buf;
return (stat(path, &buf) == 0);
}
@ -12,7 +12,7 @@ static bool path_exists(const char *path) {
/*
* This function resolves ~ in pathnames.
*/
static char* resolveTilde(const char *path) {
char* resolveTilde(const char *path) {
static glob_t globbuf;
static char *ret = NULL;