From: Kurt Zeilenga Date: Thu, 8 Sep 2005 21:38:20 +0000 (+0000) Subject: cast pointer to long instead of int to hopefully avoid X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~458 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb19302db698e102620016a6e9ca2cc63eaf9fe0;p=openldap cast pointer to long instead of int to hopefully avoid truncation. Change does at least silence warning. --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index c736bc9bd4..8d44c6c60e 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -286,7 +286,7 @@ int config_set_vals(ConfigTable *Conf, ConfigArgs *c) { c->log, c->msg, 0); return(ARG_BAD_CONF); } - ptr = (void *)((char *)ptr + (int)Conf->arg_item); + ptr = (void *)((char *)ptr + (long)Conf->arg_item); } else if (arg_type & ARGS_POINTER) { ptr = Conf->arg_item; } @@ -372,7 +372,7 @@ config_get_vals(ConfigTable *cf, ConfigArgs *c) ptr = c->bi->bi_private; else return 1; - ptr = (void *)((char *)ptr + (int)cf->arg_item); + ptr = (void *)((char *)ptr + (long)cf->arg_item); } else { ptr = cf->arg_item; }