Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/savecore Make option flag variables static. This avoids...



details:   https://anonhg.NetBSD.org/src/rev/96dbdad4f04e
branches:  trunk
changeset: 502099:96dbdad4f04e
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jan 11 20:27:12 2001 +0000

description:
Make option flag variables static. This avoids a conflict between
'int compress' in savecore.c and the function 'compress' in libz.
Gnu ld 2.10 (with BFD 2.10) used on sparc64 warns this conflict
(symbol "compress" changed size).

diffstat:

 sbin/savecore/savecore.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3c9ddd9430b1 -r 96dbdad4f04e sbin/savecore/savecore.c
--- a/sbin/savecore/savecore.c  Thu Jan 11 19:33:51 2001 +0000
+++ b/sbin/savecore/savecore.c  Thu Jan 11 20:27:12 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: savecore.c,v 1.49 2001/01/02 21:39:37 joda Exp $       */
+/*     $NetBSD: savecore.c,v 1.50 2001/01/11 20:27:12 martin Exp $     */
 
 /*-
  * Copyright (c) 1986, 1992, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)savecore.c 8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: savecore.c,v 1.49 2001/01/02 21:39:37 joda Exp $");
+__RCSID("$NetBSD: savecore.c,v 1.50 2001/01/11 20:27:12 martin Exp $");
 #endif
 #endif /* not lint */
 
@@ -119,7 +119,7 @@
 long   panicstr;
 char   vers[1024];
 
-int    clear, compress, force, verbose;        /* flags */
+static int     clear, compress, force, verbose;        /* flags */
 
 void   check_kmem(void);
 int    check_space(void);



Home | Main Index | Thread Index | Old Index