Module Name: src
Committed By: dholland
Date: Sun Jun 21 03:58:36 UTC 2015
Modified Files:
src/sbin/fsck: fsutil.c fsutil.h
Log Message:
global variables should be declared extern.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sbin/fsck/fsutil.c
cvs rdiff -u -r1.19 -r1.20 src/sbin/fsck/fsutil.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/fsck/fsutil.c
diff -u src/sbin/fsck/fsutil.c:1.24 src/sbin/fsck/fsutil.c:1.25
--- src/sbin/fsck/fsutil.c:1.24 Sun Jan 13 19:53:16 2013
+++ src/sbin/fsck/fsutil.c Sun Jun 21 03:58:36 2015
@@ -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 @@ __RCSID("$NetBSD: fsutil.c,v 1.24 2013/0
#include "fsutil.h"
#include "exitvalues.h"
+volatile sig_atomic_t returntosingle;
+
static const char *dev = NULL;
static int hot = 0;
static int preen = 0;
Index: src/sbin/fsck/fsutil.h
diff -u src/sbin/fsck/fsutil.h:1.19 src/sbin/fsck/fsutil.h:1.20
--- src/sbin/fsck/fsutil.h:1.19 Sat Apr 7 16:44:10 2012
+++ src/sbin/fsck/fsutil.h Sun Jun 21 03:58:36 2015
@@ -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 checkfstab(int, int, void *(*)(struc
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);