[PATCH] move uint32 version to int version

metze at metzemix.de metze at metzemix.de
Wed Apr 30 13:45:09 GMT 2003


Hi Jelmer,

as I discussed with Simo and Andrew

I send a patch for moving uint16 version to int version...


metze
-------------- next part --------------
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=*.so --exclude=.#* --exclude=Makefile --exclude=stamp-h --exclude=configure --exclude=findsmb --exclude=*proto*.h --exclude=build_env.h --exclude=tdbsam2_parse_info.h --exclude=config.* --exclude=bin --exclude=*.configure --exclude=autom4te.cache 3_0/source/auth/auth.c 3_0-events/source/auth/auth.c
--- 3_0/source/auth/auth.c	Tue Apr 29 08:01:00 2003
+++ 3_0-events/source/auth/auth.c	Wed Apr 30 14:32:51 2003
@@ -27,7 +27,7 @@ static struct auth_init_function_entry *
 
 static struct auth_init_function_entry *auth_find_backend_entry(const char *name);
 
-NTSTATUS smb_register_auth(uint16 version, const char *name, auth_init_function init)
+NTSTATUS smb_register_auth(int version, const char *name, auth_init_function init)
 {
 	struct auth_init_function_entry *entry = backends;
 
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=*.so --exclude=.#* --exclude=Makefile --exclude=stamp-h --exclude=configure --exclude=findsmb --exclude=*proto*.h --exclude=build_env.h --exclude=tdbsam2_parse_info.h --exclude=config.* --exclude=bin --exclude=*.configure --exclude=autom4te.cache 3_0/source/passdb/pdb_interface.c 3_0-events/source/passdb/pdb_interface.c
--- 3_0/source/passdb/pdb_interface.c	Tue Apr 29 08:01:00 2003
+++ 3_0-events/source/passdb/pdb_interface.c	Wed Apr 30 14:33:23 2003
@@ -36,7 +36,7 @@ static void lazy_initialize_passdb(void)
 
 static struct pdb_init_function_entry *pdb_find_backend_entry(const char *name);
 
-NTSTATUS smb_register_passdb(uint16 version, const char *name, pdb_init_function init) 
+NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function init) 
 {
 	struct pdb_init_function_entry *entry = backends;
 
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=*.so --exclude=.#* --exclude=Makefile --exclude=stamp-h --exclude=configure --exclude=findsmb --exclude=*proto*.h --exclude=build_env.h --exclude=tdbsam2_parse_info.h --exclude=config.* --exclude=bin --exclude=*.configure --exclude=autom4te.cache 3_0/source/passdb/pdb_ldap.c 3_0-events/source/passdb/pdb_ldap.c
--- 3_0/source/passdb/pdb_ldap.c	Tue Apr 29 08:01:00 2003
+++ 3_0-events/source/passdb/pdb_ldap.c	Wed Apr 30 14:34:17 2003
@@ -3237,10 +3237,10 @@ static NTSTATUS pdb_init_ldapsam_nua(PDB
 	return NT_STATUS_OK;
 }
 
-int pdb_ldap_init(void)
+NTSTATUS pdb_ldap_init(void)
 {
 	smb_register_passdb(PASSDB_INTERFACE_VERSION, "ldapsam", pdb_init_ldapsam);
 	smb_register_passdb(PASSDB_INTERFACE_VERSION, "ldapsam_compat", pdb_init_ldapsam_compat);
 	smb_register_passdb(PASSDB_INTERFACE_VERSION, "ldapsam_nua", pdb_init_ldapsam_nua);
-	return True;
+	return NT_STATUS_OK;
 }
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=*.so --exclude=.#* --exclude=Makefile --exclude=stamp-h --exclude=configure --exclude=findsmb --exclude=*proto*.h --exclude=build_env.h --exclude=tdbsam2_parse_info.h --exclude=config.* --exclude=bin --exclude=*.configure --exclude=autom4te.cache 3_0/source/smbd/vfs.c 3_0-events/source/smbd/vfs.c
--- 3_0/source/smbd/vfs.c	Tue Apr 29 08:01:01 2003
+++ 3_0-events/source/smbd/vfs.c	Wed Apr 30 14:46:33 2003
@@ -153,7 +153,7 @@ static struct vfs_init_function_entry *v
    return NULL;
 }
 
-NTSTATUS smb_register_vfs(uint16 version, const char *name, vfs_op_tuple *(*init)(const struct vfs_ops *, struct smb_vfs_handle_struct *))
+NTSTATUS smb_register_vfs(int version, const char *name, vfs_op_tuple *(*init)(const struct vfs_ops *, struct smb_vfs_handle_struct *))
 {
    struct vfs_init_function_entry *entry = backends;
 
-------------- next part --------------
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=*.so --exclude=.#* --exclude=Makefile --exclude=stamp-h --exclude=configure --exclude=findsmb --exclude=*proto*.h --exclude=build_env.h --exclude=tdbsam2_parse_info.h --exclude=config.* --exclude=bin --exclude=*.configure --exclude=autom4te.cache HEAD/source/auth/auth.c HEAD-events/source/auth/auth.c
--- HEAD/source/auth/auth.c	Tue Apr 29 08:01:21 2003
+++ HEAD-events/source/auth/auth.c	Wed Apr 30 14:40:41 2003
@@ -27,7 +27,7 @@ static struct auth_init_function_entry *
 
 static struct auth_init_function_entry *auth_find_backend_entry(const char *name);
 
-NTSTATUS smb_register_auth(uint16 version, const char *name, auth_init_function init)
+NTSTATUS smb_register_auth(int version, const char *name, auth_init_function init)
 {
 	struct auth_init_function_entry *entry = backends;
 
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=*.so --exclude=.#* --exclude=Makefile --exclude=stamp-h --exclude=configure --exclude=findsmb --exclude=*proto*.h --exclude=build_env.h --exclude=tdbsam2_parse_info.h --exclude=config.* --exclude=bin --exclude=*.configure --exclude=autom4te.cache HEAD/source/passdb/pdb_interface.c HEAD-events/source/passdb/pdb_interface.c
--- HEAD/source/passdb/pdb_interface.c	Tue Apr 29 08:01:21 2003
+++ HEAD-events/source/passdb/pdb_interface.c	Wed Apr 30 14:41:10 2003
@@ -36,7 +36,7 @@ static void lazy_initialize_passdb(void)
 
 static struct pdb_init_function_entry *pdb_find_backend_entry(const char *name);
 
-NTSTATUS smb_register_passdb(uint16 version, const char *name, pdb_init_function init) 
+NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function init) 
 {
 	struct pdb_init_function_entry *entry = backends;
 
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=*.so --exclude=.#* --exclude=Makefile --exclude=stamp-h --exclude=configure --exclude=findsmb --exclude=*proto*.h --exclude=build_env.h --exclude=tdbsam2_parse_info.h --exclude=config.* --exclude=bin --exclude=*.configure --exclude=autom4te.cache HEAD/source/smbd/vfs.c HEAD-events/source/smbd/vfs.c
--- HEAD/source/smbd/vfs.c	Tue Apr 29 08:01:22 2003
+++ HEAD-events/source/smbd/vfs.c	Wed Apr 30 14:43:29 2003
@@ -153,7 +153,7 @@ static struct vfs_init_function_entry *v
    return NULL;
 }
 
-NTSTATUS smb_register_vfs(uint16 version, const char *name, vfs_op_tuple *(*init)(const struct vfs_ops *, struct smb_vfs_handle_struct *))
+NTSTATUS smb_register_vfs(int version, const char *name, vfs_op_tuple *(*init)(const struct vfs_ops *, struct smb_vfs_handle_struct *))
 {
    struct vfs_init_function_entry *entry = backends;
 


More information about the samba-technical mailing list