This fixes compilation with -Wstrict-overflow=2
Upstream pull request:
https://github.com/heimdal/heimdal/pull/354
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
}
static void
-space(int level)
+space(size_t level)
{
while(level-- > 0)
fprintf(headerfile, " ");
}
static void
-define_asn1 (int level, Type *t)
+define_asn1 (size_t level, Type *t)
{
switch (t->type) {
case TType:
{
hx509_name_constraints nc;
hx509_path path;
- int ret, proxy_cert_depth, selfsigned_depth, diff;
+ int ret, diff;
+ size_t proxy_cert_depth, selfsigned_depth;
size_t i, k;
enum certtype type;
Name proxy_issuer;
va_list args)
{
char **strings = NULL;
- int nstr = 0;
+ size_t nstr = 0;
const krb5_config_binding *b = NULL;
const char *p;
{
struct any_data *a = id->data;
krb5_error_code ret;
- int found = 0;
+ size_t found = 0;
while(a != NULL) {
ret = krb5_kt_remove_entry(context, a->kt, entry);
if(ret == 0)
{
struct rk_resource_record **srvs, **ss, **headp;
struct rk_resource_record *rr;
- int num_srv = 0;
+ size_t num_srv = 0;
#if defined(HAVE_INITSTATE) && defined(HAVE_SETSTATE)
int state[256 / sizeof(int)];