summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-03-19 00:45:56 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-03-19 03:20:05 +0100
commitfa387825e2a4563ff85267848d8e9d206bf6db96 (patch)
tree082b3cfeb241a483b9dc6409dd362f93a157361c
parent0b4eb47e2703e425f77010ae00bef6a50de88ea1 (diff)
downloadsamba-fa387825e2a4563ff85267848d8e9d206bf6db96.tar.gz
samba-fa387825e2a4563ff85267848d8e9d206bf6db96.tar.bz2
samba-fa387825e2a4563ff85267848d8e9d206bf6db96.zip
libcli/: Fix prototypes for all functions.
-rw-r--r--libcli/echo/tests/echo.c2
-rw-r--r--libcli/nbt/dns_hosts_file.c1
-rw-r--r--libcli/security/pysecurity.c2
-rw-r--r--libcli/security/secacl.c1
-rw-r--r--libcli/util/error.h2
5 files changed, 8 insertions, 0 deletions
diff --git a/libcli/echo/tests/echo.c b/libcli/echo/tests/echo.c
index 77a7dfa677..c47b7d0d0f 100644
--- a/libcli/echo/tests/echo.c
+++ b/libcli/echo/tests/echo.c
@@ -26,6 +26,8 @@
#include "libcli/util/ntstatus.h"
#include "libcli/echo/libecho.h"
+NTSTATUS torture_libcli_echo_init(void);
+
/* Basic test function that sends an echo request and checks the reply */
static bool echo_udp_basic(struct torture_context *tctx, const char *address)
{
diff --git a/libcli/nbt/dns_hosts_file.c b/libcli/nbt/dns_hosts_file.c
index 810e4ebb0c..c6491a925e 100644
--- a/libcli/nbt/dns_hosts_file.c
+++ b/libcli/nbt/dns_hosts_file.c
@@ -28,6 +28,7 @@
#include "lib/util/util_net.h"
#include "system/filesys.h"
#include "system/network.h"
+#include "libcli/nbt/libnbt.h"
/********************************************************
Start parsing the dns_hosts_file file.
diff --git a/libcli/security/pysecurity.c b/libcli/security/pysecurity.c
index 56bdd69b4c..87134bf104 100644
--- a/libcli/security/pysecurity.c
+++ b/libcli/security/pysecurity.c
@@ -23,6 +23,8 @@
#include "libcli/security/security.h"
#include "pytalloc.h"
+void initsecurity(void);
+
static PyObject *py_se_access_check(PyObject *module, PyObject *args, PyObject *kwargs)
{
NTSTATUS nt_status;
diff --git a/libcli/security/secacl.c b/libcli/security/secacl.c
index 9c04df81d1..47184ae96f 100644
--- a/libcli/security/secacl.c
+++ b/libcli/security/secacl.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "libcli/security/secace.h"
+#include "libcli/security/secacl.h"
#define SEC_ACL_HEADER_SIZE (2 * sizeof(uint16_t) + sizeof(uint32_t))
diff --git a/libcli/util/error.h b/libcli/util/error.h
index 77a2f5a433..7b7de6c4f0 100644
--- a/libcli/util/error.h
+++ b/libcli/util/error.h
@@ -51,4 +51,6 @@ convert a Unix error code to a WERROR
*********************************************************************/
WERROR unix_to_werror(int unix_error);
+NTSTATUS nt_status_squash(NTSTATUS nt_status);
+
#endif /* _SAMBA_ERROR_H */