Change uint_t to unsigned int in lib/util
authorMatt Kraai <mkraai@beckman.com>
Tue, 5 Jan 2010 17:40:54 +0000 (09:40 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Feb 2010 06:18:17 +0000 (07:18 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/util/asn1.c
lib/util/byteorder.h
lib/util/charset/iconv.c
lib/util/util_str.c

index 946f71359c049ba5fe4c64b11c3dc6734c3cbbca..9e3d3eeb93aa0423d530017fe5e05cb875c61405 100644 (file)
@@ -216,7 +216,7 @@ bool asn1_write_BitString(struct asn1_data *data, const void *p, size_t length,
 
 bool ber_write_OID_String(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const char *OID)
 {
-       uint_t v, v2;
+       unsigned int v, v2;
        const char *p = (const char *)OID;
        char *newp;
        int i;
@@ -588,7 +588,7 @@ static bool _ber_read_OID_String_impl(TALLOC_CTX *mem_ctx, DATA_BLOB blob,
 {
        int i;
        uint8_t *b;
-       uint_t v;
+       unsigned int v;
        char *tmp_oid = NULL;
 
        if (blob.length < 2) return false;
index b860dea7919350d1f2e9799df84896afeb5264f1..f0a000a063fd5a27a0365ddf07c245c8012fc0e4 100644 (file)
@@ -54,7 +54,7 @@ that don't have any int types that are 2 bytes long)
 You do this:
 
 #define CVAL(buf,pos) (((uint8_t *)(buf))[pos])
-#define PVAL(buf,pos) ((uint_t)CVAL(buf,pos))
+#define PVAL(buf,pos) ((unsigned int)CVAL(buf,pos))
 #define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8)
 
 then to extract a uint16_t value at offset 25 in a buffer you do this:
@@ -144,7 +144,7 @@ static __inline__ void st_le32(uint32_t *addr, const uint32_t val)
 #define CAREFUL_ALIGNMENT 1
 #endif
 
-#define CVAL(buf,pos) ((uint_t)(((const uint8_t *)(buf))[pos]))
+#define CVAL(buf,pos) ((unsigned int)(((const uint8_t *)(buf))[pos]))
 #define CVAL_NC(buf,pos) (((uint8_t *)(buf))[pos]) /* Non-const version of CVAL */
 #define PVAL(buf,pos) (CVAL(buf,pos))
 #define SCVAL(buf,pos,val) (CVAL_NC(buf,pos) = (val))
index 8256dc665c700796366c21504086b3f5393ed4af..2dac333d0c4beed9b199f212fe50c788c41ce385 100644 (file)
@@ -355,7 +355,7 @@ static size_t ucs2hex_pull(void *cd, const char **inbuf, size_t *inbytesleft,
                         char **outbuf, size_t *outbytesleft)
 {
        while (*inbytesleft >= 1 && *outbytesleft >= 2) {
-               uint_t v;
+               unsigned int v;
 
                if ((*inbuf)[0] != '@') {
                        /* seven bit ascii case */
index a2c50fd38f7540533095ddcd2798b03cd96039b6..0ea71a8e3ca76a11d158380341c362e46dc8b9cf 100644 (file)
@@ -64,7 +64,7 @@ _PUBLIC_ char *safe_strcpy(char *dest,const char *src, size_t maxlength)
 
        if (len > maxlength) {
                DEBUG(0,("ERROR: string overflow by %u (%u - %u) in safe_strcpy [%.50s]\n",
-                        (uint_t)(len-maxlength), (unsigned)len, (unsigned)maxlength, src));
+                        (unsigned int)(len-maxlength), (unsigned)len, (unsigned)maxlength, src));
                len = maxlength;
        }