svn commit: samba r12713 - in branches/SAMBA_3_0/source: libsmb nsswitch smbd tdb

jra at samba.org jra at samba.org
Wed Jan 4 12:48:55 GMT 2006


Author: jra
Date: 2006-01-04 12:48:54 +0000 (Wed, 04 Jan 2006)
New Revision: 12713

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

Log:
Remove use of uint8_t -> uint8.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libsmb/smbencrypt.c
   branches/SAMBA_3_0/source/nsswitch/winbindd_ldap.c
   branches/SAMBA_3_0/source/smbd/oplock.c
   branches/SAMBA_3_0/source/tdb/tdbutil.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/smbencrypt.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/smbencrypt.c	2006-01-04 12:45:15 UTC (rev 12712)
+++ branches/SAMBA_3_0/source/libsmb/smbencrypt.c	2006-01-04 12:48:54 UTC (rev 12713)
@@ -542,7 +542,7 @@
 	for (i=0,k=0;
 	     i<in->length;
 	     i += 8, k += 7) {
-		uint8_t bin[8], bout[8], key[7];
+		uint8 bin[8], bout[8], key[7];
 
 		memset(bin, 0, 8);
 		memcpy(bin,  &in->data[i], MIN(8, in->length-i));

Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ldap.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_ldap.c	2006-01-04 12:45:15 UTC (rev 12712)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_ldap.c	2006-01-04 12:48:54 UTC (rev 12713)
@@ -34,7 +34,7 @@
 };
 
 struct rw_buffer {
-	uint8_t *data;
+	uint8 *data;
 	size_t ofs, length;
 };
 
@@ -67,7 +67,7 @@
 
 struct pending_ldap_message *pending_messages;
 
-static BOOL append_to_buf(struct rw_buffer *buf, uint8_t *data, size_t length)
+static BOOL append_to_buf(struct rw_buffer *buf, uint8 *data, size_t length)
 {
 	buf->data = SMB_REALLOC(buf->data, buf->length+length);
 
@@ -92,7 +92,7 @@
 	return append_to_buf(buf, tmp_buf, len);
 }
 
-static void peek_into_buf(struct rw_buffer *buf, uint8_t **out,
+static void peek_into_buf(struct rw_buffer *buf, uint8 **out,
 			  size_t *out_length)
 {
 	*out = buf->data;
@@ -101,7 +101,7 @@
 
 static void consumed_from_buf(struct rw_buffer *buf, size_t length)
 {
-	uint8_t *new = memdup(buf->data+length, buf->length-length);
+	uint8 *new = memdup(buf->data+length, buf->length-length);
 	free(buf->data);
 	buf->data = new;
 	buf->length -= length;
@@ -109,7 +109,7 @@
 
 static BOOL write_out_of_buf(int fd, struct rw_buffer *buf)
 {
-	uint8_t *tmp;
+	uint8 *tmp;
 	size_t tmp_length, written;
 
 	peek_into_buf(buf, &tmp, &tmp_length);
@@ -176,7 +176,7 @@
 static struct ldap_message *get_msg_from_buf(struct rw_buffer *buffer,
 					     BOOL *error)
 {
-	uint8_t *buf;
+	uint8 *buf;
 	int buf_length, msg_length;
 	DATA_BLOB blob;
 	ASN1_DATA data;

Modified: branches/SAMBA_3_0/source/smbd/oplock.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/oplock.c	2006-01-04 12:45:15 UTC (rev 12712)
+++ branches/SAMBA_3_0/source/smbd/oplock.c	2006-01-04 12:48:54 UTC (rev 12713)
@@ -252,7 +252,7 @@
 ****************************************************************************/
 
 static char *new_break_smb_message(TALLOC_CTX *mem_ctx,
-				   files_struct *fsp, uint8_t cmd)
+				   files_struct *fsp, uint8 cmd)
 {
 	char *result = TALLOC_ARRAY(mem_ctx, char, smb_size + 8*2 + 0);
 

Modified: branches/SAMBA_3_0/source/tdb/tdbutil.c
===================================================================
--- branches/SAMBA_3_0/source/tdb/tdbutil.c	2006-01-04 12:45:15 UTC (rev 12712)
+++ branches/SAMBA_3_0/source/tdb/tdbutil.c	2006-01-04 12:48:54 UTC (rev 12713)
@@ -485,7 +485,7 @@
 	return result;
 }
 
-BOOL tdb_pack_append(TALLOC_CTX *mem_ctx, uint8_t **buf, size_t *len,
+BOOL tdb_pack_append(TALLOC_CTX *mem_ctx, uint8 **buf, size_t *len,
 		     const char *fmt, ...)
 {
 	va_list ap;
@@ -496,10 +496,10 @@
 	va_end(ap);
 
 	if (mem_ctx != NULL)
-		*buf = TALLOC_REALLOC_ARRAY(mem_ctx, *buf, uint8_t,
+		*buf = TALLOC_REALLOC_ARRAY(mem_ctx, *buf, uint8,
 					    (*len) + len1);
 	else
-		*buf = SMB_REALLOC_ARRAY(*buf, uint8_t, (*len) + len1);
+		*buf = SMB_REALLOC_ARRAY(*buf, uint8, (*len) + len1);
 
 	if (*buf == NULL)
 		return False;



More information about the samba-cvs mailing list