From patchwork Mon Mar 16 07:01:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 5623 Received: (qmail 44895 invoked by alias); 16 Mar 2015 07:01:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 44878 invoked by uid 89); 16 Mar 2015 07:01:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 16 Mar 2015 07:01:50 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 9DD9A340978 for ; Mon, 16 Mar 2015 07:01:48 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: convert some old prototypes Date: Mon, 16 Mar 2015 03:01:48 -0400 Message-Id: <1426489308-933-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes Committed. --- sim/common/ChangeLog | 4 ++++ sim/common/gentmap.c | 8 +++----- sim/common/run.c | 6 ++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index b756733..d3b8642 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,9 @@ 2015-03-16 Mike Frysinger + * gentmap.c, run.c: Convert old style prototypes. + +2015-03-16 Mike Frysinger + * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for symlinking tconfig.h to tconfig.in. * config.in, configure: Regenerate. diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c index 1769c53..fbc09a2 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -31,7 +31,7 @@ static struct tdefs open_tdefs[] = { }; static void -gen_targ_vals_h () +gen_targ_vals_h (void) { struct tdefs *t; @@ -60,7 +60,7 @@ gen_targ_vals_h () } static void -gen_targ_map_c () +gen_targ_map_c (void) { struct tdefs *t; @@ -110,9 +110,7 @@ gen_targ_map_c () } int -main (argc, argv) - int argc; - char *argv[]; +main (int argc, char *argv[]) { if (argc != 2) abort (); diff --git a/sim/common/run.c b/sim/common/run.c index 3be10ab..196d532 100644 --- a/sim/common/run.c +++ b/sim/common/run.c @@ -85,9 +85,7 @@ cntrl_c (int sig ATTRIBUTE_UNUSED) } int -main (ac, av) - int ac; - char **av; +main (int ac, char **av) { RETSIGTYPE (*prev_sigint) (); bfd *abfd; @@ -357,7 +355,7 @@ usage (int help) } static void -print_version () +print_version (void) { printf ("GNU simulator %s%s\n", PKGVERSION, version); }