Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/stand/bootblock/elf2bb - static-ify usage(), ...
details: https://anonhg.NetBSD.org/src/rev/a44f95d4936b
branches: trunk
changeset: 365796:a44f95d4936b
user: rin <rin%NetBSD.org@localhost>
date: Mon Apr 25 14:10:15 2022 +0000
description:
- static-ify usage(), intcmp(), and eval()
- remove prototype declaration for main()
NFCI; no binary changes observed for amd64 with -O0.
diffstat:
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r 926bff964073 -r a44f95d4936b sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
--- a/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c Mon Apr 25 14:03:15 2022 +0000
+++ b/sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c Mon Apr 25 14:10:15 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: elf2bb.c,v 1.23 2022/04/25 14:03:15 rin Exp $ */
+/* $NetBSD: elf2bb.c,v 1.24 2022/04/25 14:10:15 rin Exp $ */
/*-
* Copyright (c) 1996,2006 The NetBSD Foundation, Inc.
@@ -59,9 +59,9 @@
#include "elf2bb.h"
#include "chksum.h"
-void usage(void);
-int intcmp(const void *, const void *);
-int main(int argc, char *argv[]);
+static void usage(void);
+static int intcmp(const void *, const void *);
+static int eval(Elf32_Sym *, uint32_t *);
#ifdef DEBUG
#define dprintf(x) if (debug) printf x
@@ -78,7 +78,7 @@
uint32_t *relbuf;
/* can't have more relocs than that*/
-int
+static int
intcmp(const void *i, const void *j)
{
int r;
@@ -98,7 +98,6 @@
char *shstrtab;
Elf32_Sym *symtab;
char *strtab;
- int eval(Elf32_Sym *, uint32_t *);
uint32_t *lptr;
int i, l, delta;
uint8_t *rpo;
Home |
Main Index |
Thread Index |
Old Index