Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bf2859f8
...
bf2859f8f47fcbbefd7da237dfee385e7727cf9d
authored
2001-12-18 03:10:28 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Included <strings.h> and corrected the types of some casts so gcc is a
little more quiet.
1 parent
97010cf6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
argp/argp-help.c
argp/argp-parse.c
argp/argp-help.c
View file @
bf2859f
...
...
@@ -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
...
...
argp/argp-parse.c
View file @
bf2859f
...
...
@@ -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
*
));
...
...
Please
register
or
sign in
to post a comment