aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2011-09-16 13:08:32 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2011-09-16 13:08:32 -0400
commita51bc47332cf8dce31d56de7ada3f1501bf48720 (patch)
treea89f506dea56b259881d295f5c9fb7e4777292d7 /src
parentd16eee41603cad29eefbe6583f0f8725cbd4a871 (diff)
downloadduser-a51bc47332cf8dce31d56de7ada3f1501bf48720.tar.gz
Changed defines: HAVE_SOLARIS to HAVE_COMPATv1.0.0-stablev1.0.0
Diffstat (limited to 'src')
-rw-r--r--src/user.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/user.c b/src/user.c
index 3c6ffd0..21a4686 100644
--- a/src/user.c
+++ b/src/user.c
@@ -220,10 +220,7 @@ int user_del(record_t* rec)
fclose(fp);
close(fd);
-
- /* unistd.h requires this be a (const char *) not (struct FILE * (*)(void)) */
- /* -- extrarius -- */
- unlink((const char *)tmpfile);
+ unlink(_tmpfile);
if(bytes_total)
return bytes_total;
@@ -319,7 +316,7 @@ int get_file_count(const char* path)
while((ep = readdir(dp)))
{
-#ifdef HAVE_SOLARIS
+#ifdef HAVE_COMPAT
char path[PATH_MAX];
struct stat st;
snprintf(path, PATH_MAX, "%s%s", list_path, ep->d_name);
@@ -375,7 +372,7 @@ char** get_file_list(const char* path, int count)
}
while((ep = readdir(dp)))
{
-#ifdef HAVE_SOLARIS
+#ifdef HAVE_COMPAT
char path[PATH_MAX];
struct stat st;
snprintf(path, PATH_MAX, "%s%s", list_path, ep->d_name);