]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - user_list.c
Cosmetics.
[paraslash.git] / user_list.c
index 18df94b4c117f0c1aab5093101d214a93e48cb87..45501ad1e2984147839d2098597ee06db902fa39 100644 (file)
@@ -6,6 +6,9 @@
 
 /** \file user_list.c user handling for para_server */
 
+#include <sys/types.h>
+#include <dirent.h>
+
 #include "para.h"
 #include "error.h"
 #include "fd.h"
@@ -37,7 +40,7 @@ static void populate_user_list(char *user_list_file)
                struct user *u;
                ret = para_fgets(line, MAXLINE, file_ptr);
                if (ret < 0)
-                       PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
+                       PARA_ERROR_LOG("%s\n", para_strerror(-ret));
                if (ret <= 0)
                        break;
                if (sscanf(line,"%200s %200s %200s %200s", w, n, k, p) < 3)
@@ -76,7 +79,7 @@ out:
                fclose(file_ptr);
        if (ret >= 0)
                return;
-       PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
+       PARA_EMERG_LOG("%s\n", para_strerror(-ret));
        exit(EXIT_FAILURE);
 }