Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mdsetimage ansify.
details: https://anonhg.NetBSD.org/src/rev/7f66588ed7ab
branches: trunk
changeset: 347895:7f66588ed7ab
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 21 16:27:55 2016 +0000
description:
ansify.
diffstat:
usr.sbin/mdsetimage/exec_coff.c | 14 +++++---------
usr.sbin/mdsetimage/exec_ecoff.c | 14 +++++---------
2 files changed, 10 insertions(+), 18 deletions(-)
diffs (84 lines):
diff -r ff42164a1946 -r 7f66588ed7ab usr.sbin/mdsetimage/exec_coff.c
--- a/usr.sbin/mdsetimage/exec_coff.c Wed Sep 21 16:26:18 2016 +0000
+++ b/usr.sbin/mdsetimage/exec_coff.c Wed Sep 21 16:27:55 2016 +0000
@@ -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 @@
#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 @@
}
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 -r ff42164a1946 -r 7f66588ed7ab usr.sbin/mdsetimage/exec_ecoff.c
--- a/usr.sbin/mdsetimage/exec_ecoff.c Wed Sep 21 16:26:18 2016 +0000
+++ b/usr.sbin/mdsetimage/exec_ecoff.c Wed Sep 21 16:27:55 2016 +0000
@@ -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 @@
#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 @@
}
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;
Home |
Main Index |
Thread Index |
Old Index