diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-05-30 14:12:16 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-05-30 14:12:16 -0700 |
| commit | b2338c1a6d1e57f01396a8e77c65734cb2f0ae17 (patch) | |
| tree | f7ca90cff42143f8f4e74693b0d739b8621d9efc /src/platform/posix | |
| parent | d11d2acb55d6c5cdc02281346c394aef42a4fbc1 (diff) | |
| download | nng-b2338c1a6d1e57f01396a8e77c65734cb2f0ae17.tar.gz nng-b2338c1a6d1e57f01396a8e77c65734cb2f0ae17.tar.bz2 nng-b2338c1a6d1e57f01396a8e77c65734cb2f0ae17.zip | |
fixes #499 Eliminate the unused nni_plat_home_dir...
Diffstat (limited to 'src/platform/posix')
| -rw-r--r-- | src/platform/posix/posix_file.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/platform/posix/posix_file.c b/src/platform/posix/posix_file.c index b1da3cd5..b21c0509 100644 --- a/src/platform/posix/posix_file.c +++ b/src/platform/posix/posix_file.c @@ -317,19 +317,6 @@ nni_plat_temp_dir(void) } char * -nni_plat_home_dir(void) -{ - char *home; - - // POSIX says that $HOME is *REQUIRED*. We could look in - // getpwuid, but realistically this is simply not required. - if ((home = getenv("HOME")) != NULL) { - return (nni_strdup(home)); - } - return (NULL); -} - -char * nni_plat_join_dir(const char *prefix, const char *suffix) { char * newdir; |
