tempstr is only used in one file, make it static

This commit is contained in:
joerg 2020-04-22 23:46:02 +00:00
parent e45e02400d
commit ad164cdb07
2 changed files with 3 additions and 5 deletions

View File

@ -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 @@ int wtmp_enabled = 1;
#define zchar 0x5b
char tempstr[256];
char *mapfont(char, char, char);
void myhandler(int);
void start_watchdog(int);

View File

@ -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 @@ struct stat statbuf;
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;