X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fconf-intr.c;h=9777e5711a426f71e409dd6a4369312e041ac2a7;hb=9458ba8d8926a5b6b5fd5e7aed78286c5b087fdf;hp=b90640f18563cce146db02dd6ed4182739cf3611;hpb=7bd7e6e6c719585454346df74db211b9aba76ce9;p=libucw.git diff --git a/lib/conf-intr.c b/lib/conf-intr.c index b90640f1..9777e571 100644 --- a/lib/conf-intr.c +++ b/lib/conf-intr.c @@ -151,7 +151,7 @@ interpret_section(struct cf_section *sec, int number, byte **pars, int *processe for (struct cf_item *ci=sec->cfg; ci->cls; ci++) { int taken; - byte *msg = interpret_set_item(ci, number, pars, &taken, ptr + (addr_int_t) ci->ptr, allow_dynamic && !ci[1].cls); + byte *msg = interpret_set_item(ci, number, pars, &taken, ptr + (uintptr_t) ci->ptr, allow_dynamic && !ci[1].cls); if (msg) return cf_printf("Item %s: %s", ci->name, msg); *processed += taken; @@ -333,8 +333,8 @@ static int cmp_items(void *i1, void *i2, struct cf_item *item) { ASSERT(item->cls == CC_STATIC); - i1 += (addr_int_t) item->ptr; - i2 += (addr_int_t) item->ptr; + i1 += (uintptr_t) item->ptr; + i2 += (uintptr_t) item->ptr; if (item->type == CT_STRING) return strcmp(* (byte**) i1, * (byte**) i2); else // all numeric types @@ -504,7 +504,7 @@ find_item(struct cf_section *curr_sec, byte *name, byte **msg, void **ptr) *msg = cf_printf("Unknown item %s", name); return NULL; } - *ptr += (addr_int_t) ci->ptr; + *ptr += (uintptr_t) ci->ptr; if (!c) return ci; if (ci->cls != CC_SECTION)