The Samba-Bugzilla – Attachment 5121 Details for
Bug 6842
Fails to build on QNX due to missing definition of uint_t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Change uint_t to unsigned int in lib/crypto
0001-Change-uint_t-to-unsigned-int-in-lib-crypto.patch (text/plain), 1.25 KB, created by
Matt Kraai (mail address dead)
on 2010-01-05 10:59:08 UTC
(
hide
)
Description:
Change uint_t to unsigned int in lib/crypto
Filename:
MIME Type:
Creator:
Matt Kraai (mail address dead)
Created:
2010-01-05 10:59:08 UTC
Size:
1.25 KB
patch
obsolete
>From d8506db7659c68eef0207c47baf353aebc47d1e4 Mon Sep 17 00:00:00 2001 >From: Matt Kraai <mkraai@beckman.com> >Date: Tue, 5 Jan 2010 09:39:56 -0800 >Subject: [PATCH 1/8] Change uint_t to unsigned int in lib/crypto > >--- > lib/crypto/md5.c | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/lib/crypto/md5.c b/lib/crypto/md5.c >index 584c46e..566aaca 100644 >--- a/lib/crypto/md5.c >+++ b/lib/crypto/md5.c >@@ -28,12 +28,12 @@ static void MD5Transform(uint32_t buf[4], uint32_t const in[16]); > /* > * Note: this code is harmless on little-endian machines. > */ >-static void byteReverse(uint8_t *buf, uint_t longs) >+static void byteReverse(uint8_t *buf, unsigned int longs) > { > uint32_t t; > do { >- t = (uint32_t) ((uint_t) buf[3] << 8 | buf[2]) << 16 | >- ((uint_t) buf[1] << 8 | buf[0]); >+ t = (uint32_t) ((unsigned int) buf[3] << 8 | buf[2]) << 16 | >+ ((unsigned int) buf[1] << 8 | buf[0]); > *(uint32_t *) buf = t; > buf += 4; > } while (--longs); >@@ -108,7 +108,7 @@ _PUBLIC_ void MD5Update(struct MD5Context *ctx, const uint8_t *buf, size_t len) > */ > _PUBLIC_ void MD5Final(uint8_t digest[16], struct MD5Context *ctx) > { >- uint_t count; >+ unsigned int count; > uint8_t *p; > > /* Compute number of bytes mod 64 */ >-- >1.6.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6842
:
5099
|
5100
| 5121 |
5122
|
5123
|
5124
|
5125
|
5126
|
5127
|
5128