Change uint_t to unsigned int in libcli
authorMatt Kraai <mkraai@beckman.com>
Tue, 5 Jan 2010 17:41:24 +0000 (09:41 -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>
libcli/auth/msrpc_parse.c
libcli/auth/proto.h
libcli/auth/smbdes.c
libcli/nbt/nbtname.c
libcli/security/dom_sid.c

index 50e0d5c2f97cb60d2ef8bdba117e089edb840bdb..336611d132eaa9028f947f983650bbcb40b7778c 100644 (file)
@@ -333,7 +333,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx,
                        break;
                case 'b':
                        b = (DATA_BLOB *)va_arg(ap, void *);
-                       len1 = va_arg(ap, uint_t);
+                       len1 = va_arg(ap, unsigned int);
                        /* make sure its in the right format - be strict */
                        NEED_DATA(len1);
                        if (blob->data + head_ofs < (uint8_t *)head_ofs ||
index e09cdee518cb81d7b1ca8c55f489845640cb0788..2ab795ffc2f927032601767bc319f7430eff8cb6 100644 (file)
@@ -193,7 +193,7 @@ void des_crypt128(uint8_t out[8], const uint8_t in[8], const uint8_t key[16]);
 void des_crypt64(uint8_t out[8], const uint8_t in[8], const uint8_t key[8], int forw);
 void des_crypt112(uint8_t out[8], const uint8_t in[8], const uint8_t key[14], int forw);
 void des_crypt112_16(uint8_t out[16], uint8_t in[16], const uint8_t key[14], int forw);
-void sam_rid_crypt(uint_t rid, const uint8_t *in, uint8_t *out, int forw);
+void sam_rid_crypt(unsigned int rid, const uint8_t *in, uint8_t *out, int forw);
 #undef _PRINTF_ATTRIBUTE
 #define _PRINTF_ATTRIBUTE(a1, a2)
 
index 32e65e779d8a7c8fe7fc75114a33a42814589ac6..f052b27de9d5f93b6c734014e8ef3b331486275b 100644 (file)
@@ -367,7 +367,7 @@ void des_crypt112_16(uint8_t out[16], uint8_t in[16], const uint8_t key[14], int
 /* Decode a sam password hash into a password.  The password hash is the
    same method used to store passwords in the NT registry.  The DES key
    used is based on the RID of the user. */
-void sam_rid_crypt(uint_t rid, const uint8_t *in, uint8_t *out, int forw)
+void sam_rid_crypt(unsigned int rid, const uint8_t *in, uint8_t *out, int forw)
 {
        uint8_t s[14];
 
index 136379a313f9e54ee562e59ef0b64a03f0d17b76..f890b91261748d0ad3b61668604f980e9b8d24d3 100644 (file)
@@ -48,7 +48,7 @@ static enum ndr_err_code ndr_pull_component(struct ndr_pull *ndr,
                                            uint32_t *max_offset)
 {
        uint8_t len;
-       uint_t loops = 0;
+       unsigned int loops = 0;
        while (loops < 5) {
                if (*offset >= ndr->data_size) {
                        return ndr_pull_error(ndr, NDR_ERR_STRING,
index 0c8890079af7e8d99305fe4e83391e20f8a6af1b..ef534e32889a0667ffed7ffda8d267f8e4667530 100644 (file)
@@ -91,7 +91,7 @@ bool dom_sid_equal(const struct dom_sid *sid1, const struct dom_sid *sid2)
 
 bool dom_sid_parse(const char *sidstr, struct dom_sid *ret)
 {
-       uint_t rev, ia, num_sub_auths, i;
+       unsigned int rev, ia, num_sub_auths, i;
        char *p;
 
        if (strncasecmp(sidstr, "S-", 2)) {