Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck global variables should be declared extern.



details:   https://anonhg.NetBSD.org/src/rev/bb9f7cc0fbac
branches:  trunk
changeset: 809118:bb9f7cc0fbac
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Jun 21 03:58:36 2015 +0000

description:
global variables should be declared extern.

diffstat:

 sbin/fsck/fsutil.c |  6 ++++--
 sbin/fsck/fsutil.h |  4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 248c69fd6ee5 -r bb9f7cc0fbac sbin/fsck/fsutil.c
--- a/sbin/fsck/fsutil.c        Sun Jun 21 03:33:22 2015 +0000
+++ b/sbin/fsck/fsutil.c        Sun Jun 21 03:58:36 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fsutil.c,v 1.24 2013/01/13 19:53:16 mlelstv Exp $      */
+/*     $NetBSD: fsutil.c,v 1.25 2015/06/21 03:58:36 dholland Exp $     */
 
 /*
  * Copyright (c) 1990, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fsutil.c,v 1.24 2013/01/13 19:53:16 mlelstv Exp $");
+__RCSID("$NetBSD: fsutil.c,v 1.25 2015/06/21 03:58:36 dholland Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -53,6 +53,8 @@
 #include "fsutil.h"
 #include "exitvalues.h"
 
+volatile sig_atomic_t returntosingle;
+
 static const char *dev = NULL;
 static int hot = 0;
 static int preen = 0;
diff -r 248c69fd6ee5 -r bb9f7cc0fbac sbin/fsck/fsutil.h
--- a/sbin/fsck/fsutil.h        Sun Jun 21 03:33:22 2015 +0000
+++ b/sbin/fsck/fsutil.h        Sun Jun 21 03:58:36 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fsutil.h,v 1.19 2012/04/07 16:44:10 christos Exp $     */
+/*     $NetBSD: fsutil.h,v 1.20 2015/06/21 03:58:36 dholland Exp $     */
 
 /*
  * Copyright (c) 1996 Christos Zoulas.  All rights reserved.
@@ -51,7 +51,7 @@
     int (*) (const char *, const char *, const char *, void *, pid_t *));
 
 void (*ckfinish)(int);
-volatile sig_atomic_t returntosingle;
+extern volatile sig_atomic_t returntosingle;
 void catch(int) __dead;
 void catchquit(int);
 void voidquit(int);



Home | Main Index | Thread Index | Old Index