Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/hexdump use "static"
details: https://anonhg.NetBSD.org/src/rev/64aaeed61157
branches: trunk
changeset: 343921:64aaeed61157
user: dholland <dholland%NetBSD.org@localhost>
date: Fri Mar 04 02:46:19 2016 +0000
description:
use "static"
diffstat:
usr.bin/hexdump/display.c | 7 ++++---
usr.bin/hexdump/hexdump.h | 3 +--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (52 lines):
diff -r b2e198d21d36 -r 64aaeed61157 usr.bin/hexdump/display.c
--- a/usr.bin/hexdump/display.c Fri Mar 04 02:44:45 2016 +0000
+++ b/usr.bin/hexdump/display.c Fri Mar 04 02:46:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: display.c,v 1.22 2013/10/18 20:19:03 christos Exp $ */
+/* $NetBSD: display.c,v 1.23 2016/03/04 02:46:19 dholland Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: display.c,v 1.22 2013/10/18 20:19:03 christos Exp $");
+__RCSID("$NetBSD: display.c,v 1.23 2016/03/04 02:46:19 dholland Exp $");
#endif
#endif /* not lint */
@@ -62,6 +62,7 @@
static off_t address; /* address/offset in stream */
static off_t eaddress; /* end address */
+static u_char *get(void);
static inline void print(PR *, u_char *);
void
@@ -229,7 +230,7 @@
static char **_argv;
-u_char *
+static u_char *
get(void)
{
static int ateof = 1;
diff -r b2e198d21d36 -r 64aaeed61157 usr.bin/hexdump/hexdump.h
--- a/usr.bin/hexdump/hexdump.h Fri Mar 04 02:44:45 2016 +0000
+++ b/usr.bin/hexdump/hexdump.h Fri Mar 04 02:46:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hexdump.h,v 1.13 2011/09/04 20:27:27 joerg Exp $ */
+/* $NetBSD: hexdump.h,v 1.14 2016/03/04 02:46:19 dholland Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -87,7 +87,6 @@
void display(void);
void doskip(const char *, int);
void escape(char *);
-u_char *get(void);
void hexsyntax(int, char ***);
int next(char **);
void odsyntax(int, char ***);
Home |
Main Index |
Thread Index |
Old Index