svn commit: samba r10461 - in branches/SAMBA_4_0/source/lib/tdb/common: .

tridge at samba.org tridge at samba.org
Sat Sep 24 02:39:10 GMT 2005


Author: tridge
Date: 2005-09-24 02:39:09 +0000 (Sat, 24 Sep 2005)
New Revision: 10461

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

Log:
fixed tdb build on systems without stdint.h

Modified:
   branches/SAMBA_4_0/source/lib/tdb/common/open.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdb/common/open.c
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/common/open.c	2005-09-24 02:37:22 UTC (rev 10460)
+++ branches/SAMBA_4_0/source/lib/tdb/common/open.c	2005-09-24 02:39:09 UTC (rev 10461)
@@ -136,7 +136,7 @@
 	struct tdb_context *tdb;
 	struct stat st;
 	int rev = 0, locked = 0;
-	uint8_t *vp;
+	unsigned char *vp;
 	u32 vertest;
 
 	if (!(tdb = calloc(1, sizeof *tdb))) {
@@ -222,7 +222,7 @@
 		}
 		rev = (tdb->flags & TDB_CONVERT);
 	}
-	vp = (uint8_t *)&tdb->header.version;
+	vp = (unsigned char *)&tdb->header.version;
 	vertest = (((u32)vp[0]) << 24) | (((u32)vp[1]) << 16) |
 		  (((u32)vp[2]) << 8) | (u32)vp[3];
 	tdb->flags |= (vertest==TDB_VERSION) ? TDB_BIGENDIAN : 0;



More information about the samba-cvs mailing list