git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4754082
)
r4040: sorry today is not my day...
author
Stefan Metzmacher
<metze@samba.org>
Thu, 2 Dec 2004 10:35:25 +0000
(10:35 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:06:17 +0000
(13:06 -0500)
uint32 != uint8_t ...
metze
(This used to be commit
a8a3b8ee341fda041383df225ea2b7f9b589fc04
)
source4/lib/ldb/ldb_tdb/ldb_pack.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/ldb_tdb/ldb_pack.c
b/source4/lib/ldb/ldb_tdb/ldb_pack.c
index 0ebf62df8d117963411d961d71bca59275d21141..9515beeaa78db78994a28a51294f8a202e90e51b 100644
(file)
--- a/
source4/lib/ldb/ldb_tdb/ldb_pack.c
+++ b/
source4/lib/ldb/ldb_tdb/ldb_pack.c
@@
-44,7
+44,7
@@
#define LTDB_PACKING_FORMAT_NODN 0x26011966
/* use a portable integer format */
-static void put_uint32(uint
32
*p, int ofs, unsigned int val)
+static void put_uint32(uint
8_t
*p, int ofs, unsigned int val)
{
p += ofs;
p[0] = val&0xFF;
@@
-53,7
+53,7
@@
static void put_uint32(uint32 *p, int ofs, unsigned int val)
p[3] = (val>>24) & 0xFF;
}
-static unsigned int pull_uint32(uint
32
*p, int ofs)
+static unsigned int pull_uint32(uint
8_t
*p, int ofs)
{
p += ofs;
return p[0] | (p[1]<<8) | (p[2]<<16) | (p[3]<<24);