Small tweaks to files
This commit is contained in:
parent
0e53f180ad
commit
d49e86faff
3 changed files with 20 additions and 15 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue