Mercurial > hg > octave-lyh > gnulib-hg
changeset 5544:9770b79f2dbe
(parser_init): Avoid arithmetics on void pointers.
author | Sergey Poznyakoff <gray@gnu.org.ua> |
---|---|
date | Wed, 22 Dec 2004 09:50:38 +0000 |
parents | 96b72280d322 |
children | 3cc549ba866e |
files | lib/argp-parse.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/argp-parse.c +++ b/lib/argp-parse.c @@ -482,9 +482,9 @@ return ENOMEM; parser->groups = parser->storage; - parser->child_inputs = parser->storage + GLEN; - parser->long_opts = parser->storage + GLEN + CLEN; - parser->short_opts = parser->storage + GLEN + CLEN + LLEN; + parser->child_inputs = (void **)((char*) parser->storage + GLEN); + parser->long_opts = (struct option *)((char*) parser->storage + GLEN + CLEN); + parser->short_opts = (char*) parser->storage + GLEN + CLEN + LLEN; parser->opt_data = opt_data; memset (parser->child_inputs, 0, szs.num_child_inputs * sizeof (void *));