move timegm declaration to utils.h
[project/uhttpd.git] / file.c
diff --git a/file.c b/file.c
index 367ab3e..9268577 100644 (file)
--- a/file.c
+++ b/file.c
@@ -246,10 +246,6 @@ uh_path_lookup(struct client *cl, const char *url)
        return p.phys ? &p : NULL;
 }
 
-#ifdef __APPLE__
-time_t timegm (struct tm *tm);
-#endif
-
 static const char * uh_file_mime_lookup(const char *path)
 {
        struct mimetype *m = &uh_mime_types[0];
@@ -446,7 +442,7 @@ static void uh_file_dirlist(struct client *cl, struct path_info *pi)
 {
        int i;
        int count = 0;
-       char filename[PATH_MAX];
+       char *filename = uh_buf;
        char *pathptr;
        struct dirent **files = NULL;
        struct stat s;