summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-30 23:40:04 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-30 23:40:04 +0000
commitfa062af11ada2cf1c58465447ea711ec4b9b3a12 (patch)
treeed988b070348e49815c648a032f07c067f958c90 /source4/torture
parentd944b9780a132cb6c16571192f5cea8bd7b03f25 (diff)
downloadsamba-fa062af11ada2cf1c58465447ea711ec4b9b3a12.tar.gz
samba-fa062af11ada2cf1c58465447ea711ec4b9b3a12.tar.bz2
samba-fa062af11ada2cf1c58465447ea711ec4b9b3a12.zip
* removed a bunch of unused code
* made some functions static (This used to be commit 829b87f30d5f4cc7174b716f3354982d84af4818)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/gentest.c2
-rw-r--r--source4/torture/rpc/spoolss.c28
2 files changed, 15 insertions, 15 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index cc78aa11f0..b327bfad51 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -631,7 +631,7 @@ static uint_t gen_alloc_size(void)
/*
generate an ea_struct
*/
-struct ea_struct gen_ea_struct(void)
+static struct ea_struct gen_ea_struct(void)
{
struct ea_struct ea;
const char *names[] = {"EAONE",
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index 2be1ddc0a2..14cfbd0d29 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -21,7 +21,7 @@
#include "includes.h"
-BOOL test_GetPrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_GetPrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle)
{
NTSTATUS status;
@@ -67,7 +67,7 @@ BOOL test_GetPrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
}
-BOOL test_ClosePrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_ClosePrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle)
{
NTSTATUS status;
@@ -87,7 +87,7 @@ BOOL test_ClosePrinter(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_GetForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_GetForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, char *formname)
{
NTSTATUS status;
@@ -127,7 +127,7 @@ BOOL test_GetForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_EnumForms(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_EnumForms(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle)
{
NTSTATUS status;
@@ -189,7 +189,7 @@ BOOL test_EnumForms(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_DeleteForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_DeleteForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, char *formname)
{
NTSTATUS status;
@@ -209,7 +209,7 @@ BOOL test_DeleteForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_AddForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_AddForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle)
{
struct spoolss_AddForm r;
@@ -270,7 +270,7 @@ BOOL test_AddForm(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return ret;
}
-BOOL test_GetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_GetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, uint32 job_id)
{
NTSTATUS status;
@@ -310,7 +310,7 @@ BOOL test_GetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_SetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_SetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, uint32 job_id, uint32 command)
{
NTSTATUS status;
@@ -333,7 +333,7 @@ BOOL test_SetJob(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_EnumJobs(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_EnumJobs(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle)
{
NTSTATUS status;
@@ -403,7 +403,7 @@ BOOL test_EnumJobs(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_GetPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_GetPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, char *value_name)
{
NTSTATUS status;
@@ -438,7 +438,7 @@ BOOL test_GetPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_GetPrinterDataEx(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_GetPrinterDataEx(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, char *key_name,
char *value_name)
{
@@ -475,7 +475,7 @@ BOOL test_GetPrinterDataEx(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_EnumPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_EnumPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle)
{
NTSTATUS status;
@@ -523,7 +523,7 @@ BOOL test_EnumPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_DeletePrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_DeletePrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle, char *value_name)
{
NTSTATUS status;
@@ -544,7 +544,7 @@ BOOL test_DeletePrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
return True;
}
-BOOL test_SetPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
+static BOOL test_SetPrinterData(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle)
{
NTSTATUS status;