summaryrefslogtreecommitdiff
path: root/gprof/gprof.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-05-26 04:55:55 +0000
committerBen Elliston <bje@au.ibm.com>2004-05-26 04:55:55 +0000
commit76e4b983275992c538d57478b11d9862e8d11257 (patch)
tree483568c2f582a49db5967d879d6228c97eb3cf26 /gprof/gprof.c
parent624da7d0176d1e16f5f3e16d3b00cf55c4a4cf96 (diff)
downloadbinutils-redhat-76e4b983275992c538d57478b11d9862e8d11257.tar.gz
* alpha.c, basic_blocks.c, basic_blocks.h, bb_exit_func.c,gprof-post-ansify-2004-05-26
call_graph.c, call_graph.h, cg_arcs.c, cg_arcs.h, cg_dfn.c, cg_dfn.h, cg_print.c, cg_print.h, corefile.c, corefile.h, gmon_io.c, gmon_io.h, gprof.c, gprof.h, hertz.h, hist.c, hist.h, i386.c, mips.c, search_list.c, search_list.h, source.c, source.h, sparc.c, sym_ids.c, sym_ids.h, symtab.c, symtab.h, tahoe.c, utils.c, utils.h, vax.c, gen-c-prog.awk: Convert K&R C to ANSI C.
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r--gprof/gprof.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c
index 381118c9d0..727aca41ba 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -44,8 +44,8 @@
#include "demangle.h"
#include "getopt.h"
-static void usage PARAMS ((FILE *, int)) ATTRIBUTE_NORETURN;
-int main PARAMS ((int, char **));
+static void usage (FILE *, int) ATTRIBUTE_NORETURN;
+int main (int, char **);
const char *whoami;
const char *function_mapping_file;
@@ -156,9 +156,7 @@ static struct option long_options[] =
static void
-usage (stream, status)
- FILE *stream;
- int status;
+usage (FILE *stream, int status)
{
fprintf (stream, _("\
Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]\n\
@@ -182,9 +180,7 @@ Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]\n\
int
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
char **sp, *str;
Sym **cg = 0;
@@ -650,8 +646,7 @@ This program is free software. This program has absolutely no warranty.\n"));
}
void
-done (status)
- int status;
+done (int status)
{
exit (status);
}