Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rpc.pcnfsd tempstr is only used in one file, make i...
details: https://anonhg.NetBSD.org/src/rev/b8423447ce3a
branches: trunk
changeset: 1009406:b8423447ce3a
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Apr 22 23:46:02 2020 +0000
description:
tempstr is only used in one file, make it static
diffstat:
usr.sbin/rpc.pcnfsd/pcnfsd_misc.c | 4 +---
usr.sbin/rpc.pcnfsd/pcnfsd_print.c | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 9ff6e8156646 -r b8423447ce3a usr.sbin/rpc.pcnfsd/pcnfsd_misc.c
--- a/usr.sbin/rpc.pcnfsd/pcnfsd_misc.c Wed Apr 22 23:43:12 2020 +0000
+++ b/usr.sbin/rpc.pcnfsd/pcnfsd_misc.c Wed Apr 22 23:46:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcnfsd_misc.c,v 1.16 2018/01/23 21:06:25 sevan Exp $ */
+/* $NetBSD: pcnfsd_misc.c,v 1.17 2020/04/22 23:46:02 joerg Exp $ */
/* RE_SID: @(%)/usr/dosnfs/shades_SCCS/unix/pcnfsd/v2/src/SCCS/s.pcnfsd_misc.c 1.5 92/01/24 19:59:13 SMI */
/*
@@ -65,8 +65,6 @@
#define zchar 0x5b
-char tempstr[256];
-
char *mapfont(char, char, char);
void myhandler(int);
void start_watchdog(int);
diff -r 9ff6e8156646 -r b8423447ce3a usr.sbin/rpc.pcnfsd/pcnfsd_print.c
--- a/usr.sbin/rpc.pcnfsd/pcnfsd_print.c Wed Apr 22 23:43:12 2020 +0000
+++ b/usr.sbin/rpc.pcnfsd/pcnfsd_print.c Wed Apr 22 23:46:02 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcnfsd_print.c,v 1.15 2019/12/27 10:20:02 msaitoh Exp $ */
+/* $NetBSD: pcnfsd_print.c,v 1.16 2020/04/22 23:46:02 joerg Exp $ */
/* RE_SID: @(%)/usr/dosnfs/shades_SCCS/unix/pcnfsd/v2/src/SCCS/s.pcnfsd_print.c 1.7 92/01/24 19:58:58 SMI */
/*
@@ -92,7 +92,7 @@
char pathname[MAXPATHLEN];
char new_pathname[MAXPATHLEN];
char sp_name[MAXPATHLEN] = SPOOLDIR;
-char tempstr[256];
+static char tempstr[256];
char delims[] = " \t\r\n:()";
pr_list printers = NULL;
Home |
Main Index |
Thread Index |
Old Index