aboutsummaryrefslogtreecommitdiff
path: root/libiberty/argv.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-10-07 17:24:36 +0000
committerDJ Delorie <dj@redhat.com>2001-10-07 17:24:36 +0000
commite6450fe56177c2ce3faf4601ed4a3edf42cd90eb (patch)
treeac07269b8f13ae4260a052cceae08934571c5a96 /libiberty/argv.c
parent6ce8b3699c614ee2f4e2deb7259886a1ca10a0a5 (diff)
downloadgdb-e6450fe56177c2ce3faf4601ed4a3edf42cd90eb.zip
gdb-e6450fe56177c2ce3faf4601ed4a3edf42cd90eb.tar.gz
gdb-e6450fe56177c2ce3faf4601ed4a3edf42cd90eb.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/argv.c')
-rw-r--r--libiberty/argv.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libiberty/argv.c b/libiberty/argv.c
index 3588285..5d848ad 100644
--- a/libiberty/argv.c
+++ b/libiberty/argv.c
@@ -1,5 +1,5 @@
/* Create and destroy argument vectors (argv's)
- Copyright (C) 1992 Free Software Foundation, Inc.
+ Copyright (C) 1992, 2001 Free Software Foundation, Inc.
Written by Fred Fish @ Cygnus Support
This file is part of the libiberty library.
@@ -203,7 +203,7 @@ NOTES
*/
char **buildargv (input)
-char *input;
+ const char *input;
{
char *arg;
char *copybuf;
@@ -336,7 +336,7 @@ char *input;
/* Simple little test driver. */
-static char *tests[] =
+static const char *const tests[] =
{
"a simple command line",
"arg 'foo' is single quoted",
@@ -353,10 +353,10 @@ static char *tests[] =
NULL
};
-main ()
+int main ()
{
char **argv;
- char **test;
+ const char *const *test;
char **targs;
for (test = tests; *test != NULL; test++)
@@ -377,6 +377,7 @@ main ()
freeargv (argv);
}
+ return 0;
}
#endif /* MAIN */