summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-04-01 15:37:12 +0200
committerGuido Günther <agx@sigxcpu.org>2016-04-01 15:37:12 +0200
commitaec93e0ec1a86d01aab1407dae3d54abddc08d2c (patch)
tree4e9afb2db2641eba061f3751448428a396c2cc3c /tests
parent51c7ba3a0e307f31745254cb8c134a90519d9eb3 (diff)
New upstream version 1.3.3~rc2
Diffstat (limited to 'tests')
-rw-r--r--tests/nssmock.c6
-rw-r--r--tests/nsstest.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/nssmock.c b/tests/nssmock.c
index b4a42604c..31b1177ca 100644
--- a/tests/nssmock.c
+++ b/tests/nssmock.c
@@ -20,7 +20,7 @@
#include <config.h>
-#ifdef __linux__
+#ifdef NSS
# include <stdio.h>
# include <stdlib.h>
# include <dlfcn.h>
@@ -107,7 +107,7 @@ open(const char *path, int flags, ...)
va_list ap;
mode_t mode;
va_start(ap, flags);
- mode = va_arg(ap, mode_t);
+ mode = va_arg(ap, int);
va_end(ap);
ret = realopen(newpath ? newpath : path, flags, mode);
} else {
@@ -136,5 +136,5 @@ opendir(const char *path)
return ret;
}
#else
-/* Nothing to override on non-__linux__ platforms */
+/* Nothing to override if NSS plugin is not enabled */
#endif
diff --git a/tests/nsstest.c b/tests/nsstest.c
index 7399d9a4b..63c7162d3 100644
--- a/tests/nsstest.c
+++ b/tests/nsstest.c
@@ -22,7 +22,7 @@
#include "testutils.h"
-#ifdef __linux__
+#ifdef NSS
# include <stdbool.h>
# include <arpa/inet.h>