Fix a typo on the Documentation web page.
[paraslash.git] / user_list.c
index 18df94b4c117f0c1aab5093101d214a93e48cb87..4f63f635846a7268276bddad83f931380e89dfe7 100644 (file)
@@ -1,11 +1,14 @@
 /*
 /*
- * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
 /** \file user_list.c user handling for para_server */
 
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
 /** \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"
 #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)
                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)
                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;
                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);
 }
 
        exit(EXIT_FAILURE);
 }