Module Name: src
Committed By: christos
Date: Wed Sep 21 16:27:55 UTC 2016
Modified Files:
src/usr.sbin/mdsetimage: exec_coff.c exec_ecoff.c
Log Message:
ansify.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/mdsetimage/exec_coff.c \
src/usr.sbin/mdsetimage/exec_ecoff.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/mdsetimage/exec_coff.c
diff -u src/usr.sbin/mdsetimage/exec_coff.c:1.6 src/usr.sbin/mdsetimage/exec_coff.c:1.7
--- src/usr.sbin/mdsetimage/exec_coff.c:1.6 Thu Jul 30 11:16:37 2009
+++ src/usr.sbin/mdsetimage/exec_coff.c Wed Sep 21 12:27:55 2016
@@ -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 <sys/cdefs.h>
#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 <sys/param.h>
@@ -49,9 +49,7 @@ __RCSID("$NetBSD: exec_coff.c,v 1.6 2009
#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;
Index: src/usr.sbin/mdsetimage/exec_ecoff.c
diff -u src/usr.sbin/mdsetimage/exec_ecoff.c:1.6 src/usr.sbin/mdsetimage/exec_ecoff.c:1.7
--- src/usr.sbin/mdsetimage/exec_ecoff.c:1.6 Thu Jul 30 11:16:37 2009
+++ src/usr.sbin/mdsetimage/exec_ecoff.c Wed Sep 21 12:27:55 2016
@@ -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 <sys/cdefs.h>
#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 <sys/types.h>
@@ -46,9 +46,7 @@ __RCSID("$NetBSD: exec_ecoff.c,v 1.6 200
#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;