r15457: Get rid of more usages of uint_t
authorJelmer Vernooij <jelmer@samba.org>
Fri, 5 May 2006 13:02:14 +0000 (13:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:05:37 +0000 (14:05 -0500)
source/lib/util/time.c
source/libcli/security/dom_sid.c

index 4897d2fa956d4065e60484ea50c99779202a6a83..6ad3a229e3bdf524a266e8b75d6a91d4595bff77 100644 (file)
@@ -139,7 +139,7 @@ _PUBLIC_ BOOL null_nttime(NTTIME t)
 static uint16_t make_dos_date1(struct tm *t)
 {
        uint16_t ret=0;
-       ret = (((uint_t)(t->tm_mon+1)) >> 3) | ((t->tm_year-80) << 1);
+       ret = (((unsigned int)(t->tm_mon+1)) >> 3) | ((t->tm_year-80) << 1);
        ret = ((ret&0xFF)<<8) | (t->tm_mday | (((t->tm_mon+1) & 0x7) << 5));
        return ret;
 }
@@ -150,7 +150,7 @@ static uint16_t make_dos_date1(struct tm *t)
 static uint16_t make_dos_time1(struct tm *t)
 {
        uint16_t ret=0;
-       ret = ((((uint_t)t->tm_min >> 3)&0x7) | (((uint_t)t->tm_hour) << 3));
+       ret = ((((unsigned int)t->tm_min >> 3)&0x7) | (((unsigned int)t->tm_hour) << 3));
        ret = ((ret&0xFF)<<8) | ((t->tm_sec/2) | ((t->tm_min & 0x7) << 5));
        return ret;
 }
@@ -440,7 +440,7 @@ _PUBLIC_ struct timeval timeval_add(const struct timeval *tv,
                           uint32_t secs, uint32_t usecs)
 {
        struct timeval tv2 = *tv;
-       const uint_t million = 1000000;
+       const unsigned int million = 1000000;
        tv2.tv_sec += secs;
        tv2.tv_usec += usecs;
        tv2.tv_sec += tv2.tv_usec / million;
index 39841e5a7038be3a4e62b09c426b36e9b06f610a..951c0f5956edb13f78fd27cdfd48c1161516f370 100644 (file)
@@ -264,7 +264,7 @@ char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
                (sid->id_auth[2] << 24);
 
        ofs = snprintf(ret, maxlen, "S-%u-%lu", 
-                      (uint_t)sid->sid_rev_num, (unsigned long)ia);
+                      (unsigned int)sid->sid_rev_num, (unsigned long)ia);
 
        for (i = 0; i < sid->num_auths; i++) {
                ofs += snprintf(ret + ofs, maxlen - ofs, "-%lu", (unsigned long)sid->sub_auths[i]);