diff options
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 2 | ||||
-rw-r--r-- | source3/libads/sasl_wrapping.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 2ad9bfdee1e..1c0375d2aa8 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1788,7 +1788,7 @@ ADS_STATUS ads_add_strlist(TALLOC_CTX *ctx, ADS_MODLIST *mods, uint32_t ads_get_kvno(ADS_STRUCT *ads, const char *account_name) { LDAPMessage *res = NULL; - uint32_t kvno = (uint32)-1; /* -1 indicates a failure */ + uint32_t kvno = (uint32_t)-1; /* -1 indicates a failure */ char *filter; const char *attrs[] = {"msDS-KeyVersionNumber", NULL}; char *dn_string = NULL; diff --git a/source3/libads/sasl_wrapping.c b/source3/libads/sasl_wrapping.c index 9296d60ba9d..c7a58ab6147 100644 --- a/source3/libads/sasl_wrapping.c +++ b/source3/libads/sasl_wrapping.c @@ -45,7 +45,7 @@ static ber_slen_t ads_saslwrap_prepare_inbuf(ADS_STRUCT *ads) ads->ldap.in.left = 0; ads->ldap.in.size = 4 + ads->ldap.in.min_wrapped; ads->ldap.in.buf = talloc_array(ads->ldap.mem_ctx, - uint8, ads->ldap.in.size); + uint8_t, ads->ldap.in.size); if (!ads->ldap.in.buf) { return -1; } @@ -62,7 +62,7 @@ static ber_slen_t ads_saslwrap_grow_inbuf(ADS_STRUCT *ads) ads->ldap.in.size = 4 + ads->ldap.in.needed; ads->ldap.in.buf = talloc_realloc(ads->ldap.mem_ctx, ads->ldap.in.buf, - uint8, ads->ldap.in.size); + uint8_t, ads->ldap.in.size); if (!ads->ldap.in.buf) { return -1; } @@ -177,7 +177,7 @@ static ber_slen_t ads_saslwrap_prepare_outbuf(ADS_STRUCT *ads, uint32_t len) ads->ldap.out.left = 0; ads->ldap.out.size = 4 + ads->ldap.out.sig_size + len; ads->ldap.out.buf = talloc_array(ads->ldap.mem_ctx, - uint8, ads->ldap.out.size); + uint8_t, ads->ldap.out.size); if (!ads->ldap.out.buf) { return -1; } @@ -214,7 +214,7 @@ static ber_slen_t ads_saslwrap_write(Sockbuf_IO_Desc *sbiod, void *buf, ber_len_ ret = ads_saslwrap_prepare_outbuf(ads, rlen); if (ret < 0) return ret; - status = ads->ldap.wrap_ops->wrap(ads, (uint8 *)buf, rlen); + status = ads->ldap.wrap_ops->wrap(ads, (uint8_t *)buf, rlen); if (!ADS_ERR_OK(status)) { errno = EACCES; return -1; |