Commit bf2859f8 bf2859f8f47fcbbefd7da237dfee385e7727cf9d by Sam Roberts

Included <strings.h> and corrected the types of some casts so gcc is a

little more quiet.
1 parent 97010cf6
......@@ -53,6 +53,10 @@ char *alloca ();
#include <malloc.h>
#include <ctype.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifndef _
/* This is for other GNU distributions with internationalized messages. */
# if defined HAVE_LIBINTL_H || defined _LIBC
......
......@@ -28,6 +28,10 @@
#include <limits.h>
#include <getopt.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifndef _
/* This is for other GNU distributions with internationalized messages.
When compiling libc, the _ macro is predefined. */
......@@ -530,8 +534,8 @@ parser_init (struct parser *parser, const struct argp *argp,
parser->long_opts = parser->storage + GLEN + CLEN;
parser->short_opts = parser->storage + GLEN + CLEN + LLEN;
*/
parser->child_inputs = (char *)(parser->storage) + GLEN;
parser->long_opts = (char *)(parser->storage) + GLEN + CLEN;
parser->child_inputs = (void **)(parser->storage) + GLEN;
parser->long_opts = (struct option *)(parser->storage) + GLEN + CLEN;
parser->short_opts = (char *)(parser->storage) + GLEN + CLEN + LLEN;
memset (parser->child_inputs, 0, szs.num_child_inputs * sizeof (void *));
......