Module Name: src
Committed By: dholland
Date: Fri Mar 4 02:46:19 UTC 2016
Modified Files:
src/usr.bin/hexdump: display.c hexdump.h
Log Message:
use "static"
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/hexdump/display.c
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/hexdump/hexdump.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/hexdump/display.c
diff -u src/usr.bin/hexdump/display.c:1.22 src/usr.bin/hexdump/display.c:1.23
--- src/usr.bin/hexdump/display.c:1.22 Fri Oct 18 20:19:03 2013
+++ src/usr.bin/hexdump/display.c Fri Mar 4 02:46:19 2016
@@ -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 @@ enum _vflag vflag = FIRST;
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 @@ bpad(PR *pr)
static char **_argv;
-u_char *
+static u_char *
get(void)
{
static int ateof = 1;
Index: src/usr.bin/hexdump/hexdump.h
diff -u src/usr.bin/hexdump/hexdump.h:1.13 src/usr.bin/hexdump/hexdump.h:1.14
--- src/usr.bin/hexdump/hexdump.h:1.13 Sun Sep 4 20:27:27 2011
+++ src/usr.bin/hexdump/hexdump.h Fri Mar 4 02:46:19 2016
@@ -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 conv_u(PR *, u_char *);
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 ***);