From 753ee5437d93cf7d55a703048e0db40467ddc66b Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 21 Sep 2016 16:27:55 +0000 Subject: [PATCH] ansify. --- usr.sbin/mdsetimage/exec_coff.c | 14 +++++--------- usr.sbin/mdsetimage/exec_ecoff.c | 14 +++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/usr.sbin/mdsetimage/exec_coff.c b/usr.sbin/mdsetimage/exec_coff.c index 2367eb00e003..103d2e4be57f 100644 --- a/usr.sbin/mdsetimage/exec_coff.c +++ b/usr.sbin/mdsetimage/exec_coff.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_coff.c,v 1.6 2009/07/30 15:16:37 tsutsui Exp $ */ +/* $NetBSD: exec_coff.c,v 1.7 2016/09/21 16:27:55 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou @@ -31,7 +31,7 @@ #include #ifndef lint -__RCSID("$NetBSD: exec_coff.c,v 1.6 2009/07/30 15:16:37 tsutsui Exp $"); +__RCSID("$NetBSD: exec_coff.c,v 1.7 2016/09/21 16:27:55 christos Exp $"); #endif /* not lint */ #include @@ -49,9 +49,7 @@ __RCSID("$NetBSD: exec_coff.c,v 1.6 2009/07/30 15:16:37 tsutsui Exp $"); #define BAD do { rv = -1; goto out; } while (0) int -check_coff(mappedfile, mappedsize) - const char *mappedfile; - size_t mappedsize; +check_coff(const char *mappedfile, size_t mappedsize) { const struct coff_exechdr *exechdrp; int rv; @@ -70,10 +68,8 @@ out: } int -findoff_coff(mappedfile, mappedsize, vmaddr, fileoffp) - const char *mappedfile; - size_t mappedsize, *fileoffp; - u_long vmaddr; +findoff_coff(const char *mappedfile, size_t mappedsize, u_long vmaddr, + size_t *fileoffp, u_long text_addr) { const struct coff_exechdr *exechdrp; int rv; diff --git a/usr.sbin/mdsetimage/exec_ecoff.c b/usr.sbin/mdsetimage/exec_ecoff.c index 1cb35aac4a6f..94604d0d52f9 100644 --- a/usr.sbin/mdsetimage/exec_ecoff.c +++ b/usr.sbin/mdsetimage/exec_ecoff.c @@ -1,4 +1,4 @@ -/* $NetBSD: exec_ecoff.c,v 1.6 2009/07/30 15:16:37 tsutsui Exp $ */ +/* $NetBSD: exec_ecoff.c,v 1.7 2016/09/21 16:27:55 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou @@ -31,7 +31,7 @@ #include #ifndef lint -__RCSID("$NetBSD: exec_ecoff.c,v 1.6 2009/07/30 15:16:37 tsutsui Exp $"); +__RCSID("$NetBSD: exec_ecoff.c,v 1.7 2016/09/21 16:27:55 christos Exp $"); #endif /* not lint */ #include @@ -46,9 +46,7 @@ __RCSID("$NetBSD: exec_ecoff.c,v 1.6 2009/07/30 15:16:37 tsutsui Exp $"); #define BAD do { rv = -1; goto out; } while (0) int -check_ecoff(mappedfile, mappedsize) - const char *mappedfile; - size_t mappedsize; +check_ecoff(const char *mappedfile, size_t mappedsize) { const struct ecoff_exechdr *exechdrp; int rv; @@ -67,10 +65,8 @@ out: } int -findoff_ecoff(mappedfile, mappedsize, vmaddr, fileoffp) - const char *mappedfile; - size_t mappedsize, *fileoffp; - u_long vmaddr; +findoff_ecoff(const char *mappedfile, size_t mappedsize, u_long vmaddr, + size_t *fileoffp, u_long text_address) { const struct ecoff_exechdr *exechdrp; int rv;