global variables should be declared extern.
This commit is contained in:
parent
68072c6ae8
commit
c30abfbbfa
@ -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/01/13 19:53:16 mlelstv Exp $");
|
||||
#include "fsutil.h"
|
||||
#include "exitvalues.h"
|
||||
|
||||
volatile sig_atomic_t returntosingle;
|
||||
|
||||
static const char *dev = NULL;
|
||||
static int hot = 0;
|
||||
static int preen = 0;
|
||||
|
@ -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 *(*)(struct fstab *),
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user