svn commit: samba r3476 - in branches/SAMBA_4_0/source: auth libcli/auth libcli/util

tridge at samba.org tridge at samba.org
Tue Nov 2 11:17:08 GMT 2004


Author: tridge
Date: 2004-11-02 11:17:06 +0000 (Tue, 02 Nov 2004)
New Revision: 3476

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3476

Log:
fixed some const warnings





Modified:
   branches/SAMBA_4_0/source/auth/auth_builtin.c
   branches/SAMBA_4_0/source/libcli/auth/spnego_parse.c
   branches/SAMBA_4_0/source/libcli/util/asn1.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_builtin.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_builtin.c	2004-11-02 11:16:34 UTC (rev 3475)
+++ branches/SAMBA_4_0/source/auth/auth_builtin.c	2004-11-02 11:17:06 UTC (rev 3476)
@@ -44,7 +44,8 @@
 
 	if (!(user_info->internal_username.str 
 	      && *user_info->internal_username.str)) {
-		nt_status = make_server_info_guest(auth_context, server_info);
+		nt_status = make_server_info_guest(discard_const(auth_context), 
+						   server_info);
 	}
 
 	return nt_status;

Modified: branches/SAMBA_4_0/source/libcli/auth/spnego_parse.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/spnego_parse.c	2004-11-02 11:16:34 UTC (rev 3475)
+++ branches/SAMBA_4_0/source/libcli/auth/spnego_parse.c	2004-11-02 11:17:06 UTC (rev 3476)
@@ -359,7 +359,7 @@
 		break;
 	case SPNEGO_NEG_TOKEN_TARG:
 		if (spnego->negTokenTarg.supportedMech) {
-			talloc_free(spnego->negTokenTarg.supportedMech);
+			talloc_free(discard_const(spnego->negTokenTarg.supportedMech));
 		}
 		data_blob_free(&spnego->negTokenTarg.responseToken);
 		data_blob_free(&spnego->negTokenTarg.mechListMIC);

Modified: branches/SAMBA_4_0/source/libcli/util/asn1.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/asn1.c	2004-11-02 11:16:34 UTC (rev 3475)
+++ branches/SAMBA_4_0/source/libcli/util/asn1.c	2004-11-02 11:17:06 UTC (rev 3476)
@@ -534,7 +534,7 @@
 		data->has_error = True;
 		return False;
 	}
-	talloc_free(id);
+	talloc_free(discard_const(id));
 	return True;
 }
 



More information about the samba-cvs mailing list