summaryrefslogtreecommitdiff
path: root/gcc/ada/argv.c
diff options
context:
space:
mode:
authorkcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-31 01:08:43 +0000
committerkcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-31 01:08:43 +0000
commit6f2c2693f7ca65a692e88bcc8f74ca73e4462c37 (patch)
treeee92d17300eb95b03e9b66263bbb9e1407851aa2 /gcc/ada/argv.c
parent84b5e3f34b717e4431cde5f4e24c1dda7d548a42 (diff)
downloadgcc-6f2c2693f7ca65a692e88bcc8f74ca73e4462c37.tar.gz
C90 prototype updates.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/argv.c')
-rw-r--r--gcc/ada/argv.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/gcc/ada/argv.c b/gcc/ada/argv.c
index d0ba12d9ee5..b62011c2bef 100644
--- a/gcc/ada/argv.c
+++ b/gcc/ada/argv.c
@@ -71,28 +71,25 @@ const char **gnat_envp = (const char **) 0;
#endif
int
-__gnat_arg_count ()
+__gnat_arg_count (void)
{
return gnat_argc;
}
int
-__gnat_len_arg (arg_num)
- int arg_num;
+__gnat_len_arg (int arg_num)
{
return strlen (gnat_argv[arg_num]);
}
void
-__gnat_fill_arg (a, i)
- char *a;
- int i;
+__gnat_fill_arg ( char *a, int i)
{
strncpy (a, gnat_argv[i], strlen(gnat_argv[i]));
}
int
-__gnat_env_count ()
+__gnat_env_count (void)
{
int i;
@@ -102,16 +99,13 @@ __gnat_env_count ()
}
int
-__gnat_len_env (env_num)
- int env_num;
+__gnat_len_env (int env_num)
{
return strlen (gnat_envp[env_num]);
}
void
-__gnat_fill_env (a, i)
- char *a;
- int i;
+__gnat_fill_env (char *a, int i)
{
strncpy (a, gnat_envp[i], strlen (gnat_envp[i]));
}