[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2655-g096ff39

Jeremy Allison jra at samba.org
Fri Jun 27 02:21:45 GMT 2008


The branch, v3-2-test has been updated
       via  096ff390a24ce971c9a207493dc1b5d9f88518b6 (commit)
      from  5aa2411f0b3720b790439359a2dadb23008e936e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 096ff390a24ce971c9a207493dc1b5d9f88518b6
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Jun 26 19:20:51 2008 -0700

    Fix gcc warnings at -O3.
    Jeremy.

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

Summary of changes:
 source/auth/auth_util.c      |    2 +-
 source/libsmb/dsgetdcname.c  |    3 ++-
 source/rpc_client/cli_pipe.c |    4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/auth/auth_util.c b/source/auth/auth_util.c
index 115a6e9..2024526 100644
--- a/source/auth/auth_util.c
+++ b/source/auth/auth_util.c
@@ -568,7 +568,7 @@ NTSTATUS make_server_info_sam(auth_serversupplied_info **server_info,
 		 * a PDC. JRA.
 		 */
 
-		winbind_off();
+		(void)winbind_off();
 
 		DEBUG(10, ("make_server_info_sam: our machine account %s "
 			"setting supplementary group list empty and "
diff --git a/source/libsmb/dsgetdcname.c b/source/libsmb/dsgetdcname.c
index 48e497b..8d75593 100644
--- a/source/libsmb/dsgetdcname.c
+++ b/source/libsmb/dsgetdcname.c
@@ -920,7 +920,8 @@ static NTSTATUS make_dc_info_from_cldap_reply(TALLOC_CTX *mem_ctx,
 					      union nbt_cldap_netlogon *r,
 					      struct netr_DsRGetDCNameInfo **info)
 {
-	const char *dc_hostname, *dc_domain_name;
+	const char *dc_hostname = NULL;
+	const char *dc_domain_name = NULL;
 	const char *dc_address = NULL;
 	const char *dc_forest = NULL;
 	uint32_t dc_address_type = 0;
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index 71422cd..425eb26 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/rpc_client/cli_pipe.c
@@ -445,8 +445,8 @@ static NTSTATUS cli_pipe_validate_rpc_response(struct rpc_pipe_client *cli, RPC_
 			return NT_STATUS_INVALID_PARAMETER;
 		}
 
-		if (prhdr->auth_len + RPC_HDR_AUTH_LEN < prhdr->auth_len ||
-				prhdr->auth_len + RPC_HDR_AUTH_LEN < RPC_HDR_AUTH_LEN) {
+		if (prhdr->auth_len + (unsigned int)RPC_HDR_AUTH_LEN < prhdr->auth_len ||
+				prhdr->auth_len + (unsigned int)RPC_HDR_AUTH_LEN < (unsigned int)RPC_HDR_AUTH_LEN) {
 			/* Integer wrap attempt. */
 			return NT_STATUS_INVALID_PARAMETER;
 		}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list