[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Thu May 14 14:17:04 MDT 2015


The branch, master has been updated
       via  57568f1 Convert all uint32/16/8 to _t in a grab-bag of remaining files.
       via  059a6e0 Convert all uses of uint32/16/8 to _t in source3/groupdb.
      from  1aa0161 namequery: Fix a missing TALLOC_FREE

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 57568f1900152c4cb381e151049414086bada14b
Author: Richard Sharpe <rsharpe at samba.org>
Date:   Wed May 13 17:26:01 2015 -0700

    Convert all uint32/16/8 to _t in a grab-bag of remaining files.
    
    I still need to fix the rpc stuff, but we are almost there.
    
    Signed-off-by: Richard Sharpe <rsharpe at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Thu May 14 22:16:56 CEST 2015 on sn-devel-104

commit 059a6e00251acc29dbb4efce3bbea231ba5ba153
Author: Richard Sharpe <rsharpe at samba.org>
Date:   Wed May 13 17:03:05 2015 -0700

    Convert all uses of uint32/16/8 to _t in source3/groupdb.
    
    Signed-off-by: Richard Sharpe <rsharpe at samba.org>
    Reviewed-by: Jeremy Allison <jra at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 buildtools/wafsamba/samba_patterns.py |  6 +++---
 examples/VFS/shadow_copy_test.c       |  4 ++--
 examples/VFS/skel_opaque.c            | 12 ++++++------
 examples/VFS/skel_transparent.c       | 14 +++++++-------
 lib/util/debug_s3.c                   |  2 +-
 source3/auth/token_util.c             |  4 ++--
 source3/groupdb/mapping.c             | 12 ++++++------
 source3/groupdb/mapping_tdb.c         |  2 +-
 source3/include/libsmb_internal.h     |  4 ++--
 source3/include/proto.h               | 10 +++++-----
 source3/include/rpc_misc.h            |  2 +-
 source3/include/smb.h                 |  2 +-
 source3/include/util_tdb.h            |  6 +++---
 source3/lib/smbconf/smbconf_reg.c     |  4 ++--
 source3/libads/ldap.c                 |  2 +-
 source3/libads/sasl_wrapping.c        |  8 ++++----
 source3/libsmb/clientgen.c            |  2 +-
 source3/libsmb/clifsinfo.c            |  4 ++--
 source3/libsmb/proto.h                |  2 +-
 source3/printing/notify.h             |  2 +-
 source3/printing/nt_printing.c        |  2 +-
 source3/profile/profile.c             |  2 +-
 source3/registry/reg_parse_prs.c      |  2 +-
 source3/registry/reg_parse_prs.h      |  2 +-
 source3/registry/regfio.c             | 16 ++++++++--------
 source3/utils/net_groupmap.c          |  2 +-
 source3/utils/net_rap.c               |  8 ++++----
 source3/winbindd/winbindd_proto.h     |  2 +-
 28 files changed, 70 insertions(+), 70 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py
index b4427d3..0469992 100644
--- a/buildtools/wafsamba/samba_patterns.py
+++ b/buildtools/wafsamba/samba_patterns.py
@@ -140,9 +140,9 @@ def write_build_options_footer(fp):
     fp.write("       output(screen, \"   sizeof(int):          %lu\\n\",(unsigned long)sizeof(int));\n")
     fp.write("       output(screen, \"   sizeof(long):         %lu\\n\",(unsigned long)sizeof(long));\n")
     fp.write("       output(screen, \"   sizeof(long long):    %lu\\n\",(unsigned long)sizeof(long long));\n")
-    fp.write("       output(screen, \"   sizeof(uint8):        %lu\\n\",(unsigned long)sizeof(uint8));\n")
-    fp.write("       output(screen, \"   sizeof(uint16):       %lu\\n\",(unsigned long)sizeof(uint16));\n")
-    fp.write("       output(screen, \"   sizeof(uint32):       %lu\\n\",(unsigned long)sizeof(uint32));\n")
+    fp.write("       output(screen, \"   sizeof(uint8_t):      %lu\\n\",(unsigned long)sizeof(uint8_t));\n")
+    fp.write("       output(screen, \"   sizeof(uint16_t):     %lu\\n\",(unsigned long)sizeof(uint16_t));\n")
+    fp.write("       output(screen, \"   sizeof(uint32_t):     %lu\\n\",(unsigned long)sizeof(uint32_t));\n")
     fp.write("       output(screen, \"   sizeof(short):        %lu\\n\",(unsigned long)sizeof(short));\n")
     fp.write("       output(screen, \"   sizeof(void*):        %lu\\n\",(unsigned long)sizeof(void*));\n")
     fp.write("       output(screen, \"   sizeof(size_t):       %lu\\n\",(unsigned long)sizeof(size_t));\n")
diff --git a/examples/VFS/shadow_copy_test.c b/examples/VFS/shadow_copy_test.c
index 944136b..b3a99ca 100644
--- a/examples/VFS/shadow_copy_test.c
+++ b/examples/VFS/shadow_copy_test.c
@@ -56,8 +56,8 @@ static int test_get_shadow_copy_data(vfs_handle_struct *handle,
 				    struct shadow_copy_data *shadow_copy_data,
 				    bool labels)
 {
-	uint32 num = 3;
-	uint32 i;
+	uint32_t num = 3;
+	uint32_t i;
 	
 	shadow_copy_data->num_volumes = num;
 	
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index a9cbabf..296a855 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -97,7 +97,7 @@ static NTSTATUS skel_get_dfs_referrals(struct vfs_handle_struct *handle,
 }
 
 static DIR *skel_opendir(vfs_handle_struct *handle, const char *fname,
-			 const char *mask, uint32 attr)
+			 const char *mask, uint32_t attr)
 {
 	return NULL;
 }
@@ -130,7 +130,7 @@ static NTSTATUS skel_snap_delete(struct vfs_handle_struct *handle,
 }
 
 static DIR *skel_fdopendir(vfs_handle_struct *handle, files_struct *fsp,
-			   const char *mask, uint32 attr)
+			   const char *mask, uint32_t attr)
 {
 	return NULL;
 }
@@ -435,7 +435,7 @@ static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
 
 static int skel_kernel_flock(struct vfs_handle_struct *handle,
 			     struct files_struct *fsp,
-			     uint32 share_mode, uint32 access_mask)
+			     uint32_t share_mode, uint32_t access_mask)
 {
 	errno = ENOSYS;
 	return -1;
@@ -671,7 +671,7 @@ static NTSTATUS skel_readdir_attr(struct vfs_handle_struct *handle,
 }
 
 static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
-				 uint32 security_info,
+				 uint32_t security_info,
 				 TALLOC_CTX *mem_ctx,
 				 struct security_descriptor **ppdesc)
 {
@@ -679,7 +679,7 @@ static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
 }
 
 static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle,
-				const char *name, uint32 security_info,
+				const char *name, uint32_t security_info,
 				TALLOC_CTX *mem_ctx,
 				struct security_descriptor **ppdesc)
 {
@@ -687,7 +687,7 @@ static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle,
 }
 
 static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
-				 uint32 security_info_sent,
+				 uint32_t security_info_sent,
 				 const struct security_descriptor *psd)
 {
 	return NT_STATUS_NOT_IMPLEMENTED;
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 651eb2f..10f5ac5 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -95,7 +95,7 @@ static NTSTATUS skel_get_dfs_referrals(struct vfs_handle_struct *handle,
 }
 
 static DIR *skel_opendir(vfs_handle_struct *handle, const char *fname,
-			 const char *mask, uint32 attr)
+			 const char *mask, uint32_t attr)
 {
 	return SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr);
 }
@@ -130,7 +130,7 @@ static NTSTATUS skel_snap_delete(struct vfs_handle_struct *handle,
 }
 
 static DIR *skel_fdopendir(vfs_handle_struct *handle, files_struct *fsp,
-			   const char *mask, uint32 attr)
+			   const char *mask, uint32_t attr)
 {
 	return SMB_VFS_NEXT_FDOPENDIR(handle, fsp, mask, attr);
 }
@@ -531,8 +531,8 @@ static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
 }
 
 static int skel_kernel_flock(struct vfs_handle_struct *handle,
-			     struct files_struct *fsp, uint32 share_mode,
-			     uint32 access_mask)
+			     struct files_struct *fsp, uint32_t share_mode,
+			     uint32_t access_mask)
 {
 	return SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode, access_mask);
 }
@@ -799,7 +799,7 @@ static NTSTATUS skel_readdir_attr(struct vfs_handle_struct *handle,
 }
 
 static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
-				 uint32 security_info,
+				 uint32_t security_info,
 				 TALLOC_CTX *mem_ctx,
 				 struct security_descriptor **ppdesc)
 {
@@ -808,7 +808,7 @@ static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
 }
 
 static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle,
-				const char *name, uint32 security_info,
+				const char *name, uint32_t security_info,
 				TALLOC_CTX *mem_ctx,
 				struct security_descriptor **ppdesc)
 {
@@ -817,7 +817,7 @@ static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle,
 }
 
 static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
-				 uint32 security_info_sent,
+				 uint32_t security_info_sent,
 				 const struct security_descriptor *psd)
 {
 	return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd);
diff --git a/lib/util/debug_s3.c b/lib/util/debug_s3.c
index d9ac15f..98e7b00 100644
--- a/lib/util/debug_s3.c
+++ b/lib/util/debug_s3.c
@@ -94,7 +94,7 @@ static void debuglevel_message(struct messaging_context *msg_ctx,
 	DEBUG(1, ("INFO: Received REQ_DEBUGLEVEL message from PID %s\n",
 		  server_id_str_buf(src, &tmp)));
 	messaging_send_buf(msg_ctx, src, MSG_DEBUGLEVEL,
-			   (uint8 *)message, strlen(message) + 1);
+			   (uint8_t *)message, strlen(message) + 1);
 
 	TALLOC_FREE(message);
 }
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 1f95be6..c7319ad 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -47,7 +47,7 @@ bool nt_token_check_sid ( const struct dom_sid *sid, const struct security_token
 	return security_token_has_sid(token, sid);
 }
 
-bool nt_token_check_domain_rid( struct security_token *token, uint32 rid )
+bool nt_token_check_domain_rid( struct security_token *token, uint32_t rid )
 {
 	struct dom_sid domain_sid;
 
@@ -129,7 +129,7 @@ struct security_token *get_root_nt_token( void )
 NTSTATUS add_aliases(const struct dom_sid *domain_sid,
 		     struct security_token *token)
 {
-	uint32 *aliases;
+	uint32_t *aliases;
 	size_t i, num_aliases;
 	NTSTATUS status;
 	TALLOC_CTX *tmp_ctx;
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index fff0f42..4db53ab 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -152,7 +152,7 @@ bool get_domain_group_from_sid(struct dom_sid sid, GROUP_MAP *map)
 	/* special case check for rid 513 */
 
 	if ( !ret ) {
-		uint32 rid;
+		uint32_t rid;
 
 		sid_peek_rid( &sid, &rid );
 
@@ -498,11 +498,11 @@ NTSTATUS pdb_default_enum_group_mapping(struct pdb_methods *methods,
 }
 
 NTSTATUS pdb_default_create_alias(struct pdb_methods *methods,
-				  const char *name, uint32 *rid)
+				  const char *name, uint32_t *rid)
 {
 	struct dom_sid sid;
 	enum lsa_SidType type;
-	uint32 new_rid;
+	uint32_t new_rid;
 	gid_t gid;
 	bool exists;
 	GROUP_MAP *map;
@@ -698,7 +698,7 @@ NTSTATUS pdb_default_alias_memberships(struct pdb_methods *methods,
 				       const struct dom_sid *domain_sid,
 				       const struct dom_sid *members,
 				       size_t num_members,
-				       uint32 **pp_alias_rids,
+				       uint32_t **pp_alias_rids,
 				       size_t *p_num_alias_rids)
 {
 	struct dom_sid *alias_sids;
@@ -726,7 +726,7 @@ NTSTATUS pdb_default_alias_memberships(struct pdb_methods *methods,
 		return NT_STATUS_OK;
 	}
 
-	*pp_alias_rids = talloc_array(mem_ctx, uint32, num_alias_sids);
+	*pp_alias_rids = talloc_array(mem_ctx, uint32_t, num_alias_sids);
 	if (*pp_alias_rids == NULL)
 		return NT_STATUS_NO_MEMORY;
 
@@ -798,7 +798,7 @@ NTSTATUS pdb_nop_enum_group_mapping(struct pdb_methods *methods,
 *
 * @return Normal NTSTATUS return
 */
-NTSTATUS pdb_create_builtin_alias(uint32 rid, gid_t gid)
+NTSTATUS pdb_create_builtin_alias(uint32_t rid, gid_t gid)
 {
 	struct dom_sid sid;
 	enum lsa_SidType type;
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index c8156d9..8a6b28c 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -165,7 +165,7 @@ static bool add_mapping_entry(GROUP_MAP *map, int flag)
 		TALLOC_FREE(key);
 		return false;
 	}
-	len = tdb_pack((uint8 *)buf, len, "ddff", map->gid,
+	len = tdb_pack((uint8_t *)buf, len, "ddff", map->gid,
 		       map->sid_name_use, map->nt_name, map->comment);
 
 	status = dbwrap_trans_store(
diff --git a/source3/include/libsmb_internal.h b/source3/include/libsmb_internal.h
index 65fad99..c9c83eb 100644
--- a/source3/include/libsmb_internal.h
+++ b/source3/include/libsmb_internal.h
@@ -373,7 +373,7 @@ bool
 SMBC_getatr(SMBCCTX * context,
             SMBCSRV *srv,
             const char *path,
-            uint16 *mode,
+            uint16_t *mode,
             off_t *size,
             struct timespec *create_time_ts,
             struct timespec *access_time_ts,
@@ -387,7 +387,7 @@ SMBC_setatr(SMBCCTX * context, SMBCSRV *srv, char *path,
             time_t access_time,
             time_t write_time,
             time_t change_time,
-            uint16 mode);
+            uint16_t mode);
 
 off_t
 SMBC_lseek_ctx(SMBCCTX *context,
diff --git a/source3/include/proto.h b/source3/include/proto.h
index dad4dd9..0858289 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -365,7 +365,7 @@ bool check_same_stat(const SMB_STRUCT_STAT *sbuf1,
 			const SMB_STRUCT_STAT *sbuf2);
 void show_msg(const char *buf);
 int set_message_bcc(char *buf,int num_bytes);
-ssize_t message_push_blob(uint8 **outbuf, DATA_BLOB blob);
+ssize_t message_push_blob(uint8_t **outbuf, DATA_BLOB blob);
 char *unix_clean_name(TALLOC_CTX *ctx, const char *s);
 char *clean_name(TALLOC_CTX *ctx, const char *s);
 ssize_t write_data_at_offset(int fd, const char *buffer, size_t N, off_t pos);
@@ -741,7 +741,7 @@ bool spnego_parse_negTokenInit(TALLOC_CTX *ctx,
 			       char *OIDs[ASN1_MAX_OIDS],
 			       char **principal,
 			       DATA_BLOB *secblob);
-DATA_BLOB spnego_gen_krb5_wrap(TALLOC_CTX *ctx, const DATA_BLOB ticket, const uint8 tok_id[2]);
+DATA_BLOB spnego_gen_krb5_wrap(TALLOC_CTX *ctx, const DATA_BLOB ticket, const uint8_t tok_id[2]);
 int spnego_gen_krb5_negTokenInit(TALLOC_CTX *ctx,
 			    const char *principal, int time_offset,
 			    DATA_BLOB *targ,
@@ -776,7 +776,7 @@ NTSTATUS dsgetdcname(TALLOC_CTX *mem_ctx,
 
 /* The following definitions come from libsmb/errormap.c  */
 
-NTSTATUS dos_to_ntstatus(uint8 eclass, uint32_t ecode);
+NTSTATUS dos_to_ntstatus(uint8_t eclass, uint32_t ecode);
 
 /* The following definitions come from libsmb/namecache.c  */
 
@@ -938,9 +938,9 @@ bool netsamlogon_cache_have(const struct dom_sid *user_sid);
 
 /* The following definitions come from libsmb/smberr.c  */
 
-const char *smb_dos_err_name(uint8 e_class, uint16 num);
+const char *smb_dos_err_name(uint8_t e_class, uint16_t num);
 const char *get_dos_error_msg(WERROR result);
-const char *smb_dos_err_class(uint8 e_class);
+const char *smb_dos_err_class(uint8_t e_class);
 WERROR map_werror_from_unix(int error);
 
 /* The following definitions come from libsmb/trustdom_cache.c  */
diff --git a/source3/include/rpc_misc.h b/source3/include/rpc_misc.h
index a33406a..06d4b49 100644
--- a/source3/include/rpc_misc.h
+++ b/source3/include/rpc_misc.h
@@ -28,7 +28,7 @@
  **********************************************************************/
 
 #define OUR_HANDLE(hnd) (((hnd)==NULL) ? "NULL" :\
-	( IVAL((hnd)->uuid.node,2) == (uint32)getpid() ? "OURS" : \
+	( IVAL((hnd)->uuid.node,2) == (uint32_t)getpid() ? "OURS" : \
 		"OTHER")), ((unsigned int)IVAL((hnd)->uuid.node,2)),\
 		((unsigned int)getpid() )
 
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 7026cb4..751b0e6 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -757,7 +757,7 @@ struct ip_service {
 };
 
 struct ea_struct {
-	uint8 flags;
+	uint8_t flags;
 	char *name;
 	DATA_BLOB value;
 };
diff --git a/source3/include/util_tdb.h b/source3/include/util_tdb.h
index 80a8cac..1116033 100644
--- a/source3/include/util_tdb.h
+++ b/source3/include/util_tdb.h
@@ -36,9 +36,9 @@ int tdb_trans_delete(struct tdb_context *tdb, TDB_DATA key);
  * The tdb_unpack() and tdb_pack[_append]() helpers are deprecated. Consider
  * using idl/ndr for marshalling of complex data types instead.
  */
-int tdb_unpack(const uint8 *buf, int bufsize, const char *fmt, ...);
-size_t tdb_pack(uint8 *buf, int bufsize, const char *fmt, ...);
-bool tdb_pack_append(TALLOC_CTX *mem_ctx, uint8 **buf, size_t *len,
+int tdb_unpack(const uint8_t *buf, int bufsize, const char *fmt, ...);
+size_t tdb_pack(uint8_t *buf, int bufsize, const char *fmt, ...);
+bool tdb_pack_append(TALLOC_CTX *mem_ctx, uint8_t **buf, size_t *len,
 		     const char *fmt, ...);
 
 struct tdb_context *tdb_open_log(const char *name, int hash_size,
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c
index e756580..78f4082 100644
--- a/source3/lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smbconf/smbconf_reg.c
@@ -93,7 +93,7 @@ bool smbconf_reg_parameter_is_valid(const char *param_name)
 static sbcErr smbconf_reg_open_service_key(TALLOC_CTX *mem_ctx,
 					   struct smbconf_ctx *ctx,
 					   const char *servicename,
-					   uint32 desired_access,
+					   uint32_t desired_access,
 					   struct registry_key **key)
 {
 	WERROR werr;
@@ -338,7 +338,7 @@ static char *smbconf_format_registry_value(TALLOC_CTX *mem_ctx,
 		break;
 	}
 	case REG_MULTI_SZ: {
-		uint32 j;
+		uint32_t j;
 		const char **a = NULL;
 		if (!pull_reg_multi_sz(mem_ctx, &value->data, &a)) {
 			break;
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 2ad9bfd..1c0375d 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -1788,7 +1788,7 @@ ADS_STATUS ads_add_strlist(TALLOC_CTX *ctx, ADS_MODLIST *mods,
 uint32_t ads_get_kvno(ADS_STRUCT *ads, const char *account_name)
 {
 	LDAPMessage *res = NULL;
-	uint32_t kvno = (uint32)-1;      /* -1 indicates a failure */
+	uint32_t kvno = (uint32_t)-1;      /* -1 indicates a failure */
 	char *filter;
 	const char *attrs[] = {"msDS-KeyVersionNumber", NULL};
 	char *dn_string = NULL;
diff --git a/source3/libads/sasl_wrapping.c b/source3/libads/sasl_wrapping.c
index 9296d60..c7a58ab 100644
--- a/source3/libads/sasl_wrapping.c
+++ b/source3/libads/sasl_wrapping.c
@@ -45,7 +45,7 @@ static ber_slen_t ads_saslwrap_prepare_inbuf(ADS_STRUCT *ads)
 	ads->ldap.in.left	= 0;
 	ads->ldap.in.size	= 4 + ads->ldap.in.min_wrapped;
 	ads->ldap.in.buf	= talloc_array(ads->ldap.mem_ctx,
-					       uint8, ads->ldap.in.size);
+					       uint8_t, ads->ldap.in.size);
 	if (!ads->ldap.in.buf) {
 		return -1;
 	}
@@ -62,7 +62,7 @@ static ber_slen_t ads_saslwrap_grow_inbuf(ADS_STRUCT *ads)
 	ads->ldap.in.size	= 4 + ads->ldap.in.needed;
 	ads->ldap.in.buf	= talloc_realloc(ads->ldap.mem_ctx,
 						 ads->ldap.in.buf,
-						 uint8, ads->ldap.in.size);
+						 uint8_t, ads->ldap.in.size);
 	if (!ads->ldap.in.buf) {
 		return -1;
 	}
@@ -177,7 +177,7 @@ static ber_slen_t ads_saslwrap_prepare_outbuf(ADS_STRUCT *ads, uint32_t len)
 	ads->ldap.out.left	= 0;
 	ads->ldap.out.size	= 4 + ads->ldap.out.sig_size + len;
 	ads->ldap.out.buf	= talloc_array(ads->ldap.mem_ctx,
-					       uint8, ads->ldap.out.size);
+					       uint8_t, ads->ldap.out.size);
 	if (!ads->ldap.out.buf) {
 		return -1;
 	}
@@ -214,7 +214,7 @@ static ber_slen_t ads_saslwrap_write(Sockbuf_IO_Desc *sbiod, void *buf, ber_len_
 		ret = ads_saslwrap_prepare_outbuf(ads, rlen);
 		if (ret < 0) return ret;
 		
-		status = ads->ldap.wrap_ops->wrap(ads, (uint8 *)buf, rlen);
+		status = ads->ldap.wrap_ops->wrap(ads, (uint8_t *)buf, rlen);
 		if (!ADS_ERR_OK(status)) {
 			errno = EACCES;
 			return -1;
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 166918e..86ce53d 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -318,7 +318,7 @@ uint16_t cli_state_get_vc_num(struct cli_state *cli)
  Set the PID to use for smb messages. Return the old pid.
 ****************************************************************************/
 
-uint16_t cli_setpid(struct cli_state *cli, uint16 pid)
+uint16_t cli_setpid(struct cli_state *cli, uint16_t pid)
 {
 	uint16_t ret = cli->smb1.pid;
 	cli->smb1.pid = pid;
diff --git a/source3/libsmb/clifsinfo.c b/source3/libsmb/clifsinfo.c
index 3fbfbbe..d4e4451 100644
--- a/source3/libsmb/clifsinfo.c
+++ b/source3/libsmb/clifsinfo.c
@@ -235,8 +235,8 @@ NTSTATUS cli_set_unix_extensions_capabilities_recv(struct tevent_req *req)
 }
 
 NTSTATUS cli_set_unix_extensions_capabilities(struct cli_state *cli,
-					      uint16_t major, uint16 minor,
-					      uint32_t caplow, uint32 caphigh)
+					      uint16_t major, uint16_t minor,
+					      uint32_t caplow, uint32_t caphigh)
 {
 	struct tevent_context *ev;
 	struct tevent_req *req;
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index a837bef..4bbdd44 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -637,7 +637,7 @@ struct tevent_req *cli_set_unix_extensions_capabilities_send(
 NTSTATUS cli_set_unix_extensions_capabilities_recv(struct tevent_req *req);
 NTSTATUS cli_set_unix_extensions_capabilities(struct cli_state *cli,
 					      uint16_t major, uint16_t minor,
-					      uint32_t caplow, uint32 caphigh);
+					      uint32_t caplow, uint32_t caphigh);
 struct tevent_req *cli_get_fs_attr_info_send(TALLOC_CTX *mem_ctx,
 					     struct tevent_context *ev,
 					     struct cli_state *cli);
diff --git a/source3/printing/notify.h b/source3/printing/notify.h
index f64fab6..427bbf0 100644
--- a/source3/printing/notify.h
+++ b/source3/printing/notify.h
@@ -40,7 +40,7 @@ void notify_job_status_byname(struct tevent_context *ev,
 			      uint32_t flags);
 void notify_job_status(struct tevent_context *ev,
 		       struct messaging_context *msg_ctx,
-		       const char *sharename, uint32_t jobid, uint32 status);
+		       const char *sharename, uint32_t jobid, uint32_t status);
 void notify_job_total_bytes(struct tevent_context *ev,
 			    struct messaging_context *msg_ctx,
 			    const char *sharename, uint32_t jobid,
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 5b92051..3d6cfb1 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1900,7 +1900,7 @@ bool print_time_access_check(const struct auth_session_info *session_info,
 	}
 
 	t = gmtime(&now);
-	mins = (uint32_t)t->tm_hour*60 + (uint32)t->tm_min;
+	mins = (uint32_t)t->tm_hour*60 + (uint32_t)t->tm_min;
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list