summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-04-25 22:15:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:34 -0500
commitf3d3b3c8091ad4540c330c07662540440affb96e (patch)
tree39efb9209216232a3b1a7518327017f9f31df502 /source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
parent27ce4aa829ec1b4642a66fef2c31192778eef078 (diff)
downloadsamba-f3d3b3c8091ad4540c330c07662540440affb96e.tar.gz
samba-f3d3b3c8091ad4540c330c07662540440affb96e.tar.bz2
samba-f3d3b3c8091ad4540c330c07662540440affb96e.zip
r355: Fix a bunch of compiler warnings in the registry code.
(This used to be commit 0be7a866dc39e2d63c9c114d0f668287259e7c9e)
Diffstat (limited to 'source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c')
-rw-r--r--source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c b/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
index 9a3005457e..ff39954a9f 100644
--- a/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
+++ b/source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
@@ -945,6 +945,8 @@ static WERROR vk_to_val(REG_KEY *parent, VK_HDR *vk_hdr, int size, REG_VAL **val
return WERR_OK;
}
+#if 0 /* unused */
+
static BOOL vl_verify(VL_TYPE vl, int count, int size)
{
if(!vl) return False;
@@ -955,6 +957,8 @@ static BOOL vl_verify(VL_TYPE vl, int count, int size)
return True;
}
+#endif
+
static WERROR lf_verify(REG_HANDLE *h, LF_HDR *lf_hdr, int size)
{
int lf_id;
@@ -1128,6 +1132,8 @@ static WERROR nk_to_key(REG_HANDLE *h, NK_HDR *nk_hdr, int size, REG_KEY *parent
return WERR_OK;
}
+#if 0 /* unused */
+
/*
* Allocate a new hbin block, set up the header for the block etc
*/
@@ -1463,8 +1469,6 @@ static unsigned int nt_store_security(REG_HANDLE *regf, KEY_SEC_DESC *sec)
}
-#if 0
-
/*
* Store a KEY in the file ...
*
@@ -1534,7 +1538,6 @@ static int nt_store_reg_key(REG_HANDLE *regf, REG_KEY *key)
error:
return 0;
}
-#endif
/*
* Store the registry header ...
@@ -1563,6 +1566,8 @@ error:
return NULL;
}
+#endif
+
static WERROR nt_close_registry (REG_HANDLE *h)
{
REGF *regf = h->backend_data;