summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ufs-fsck/fsck.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/ufs-fsck/fsck.h b/ufs-fsck/fsck.h
index 5bcc6014..6dbd0886 100644
--- a/ufs-fsck/fsck.h
+++ b/ufs-fsck/fsck.h
@@ -1,4 +1,3 @@
-
/*
Copyright (C) 1994, 1995 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
@@ -53,6 +52,9 @@ char *typemap;
/* Map of blocks allocated */
char *blockmap;
+/* A string identifying what we're trying to check. */
+extern char *device_name;
+
/* Command line flags */
int nowrite; /* all questions fail */
@@ -114,9 +116,9 @@ int readfd, writefd;
int fsmodified;
int lfdir;
-char lfname[];
-mode_t lfmode;
+mode_t lfmode;
+extern char *lfname;
#define NBBY 8
#define howmany(x,y) (((x)+((y)-1))/(y))
@@ -163,11 +165,10 @@ void allblock_iterate (struct dinode *, int (*)(daddr_t, int, off_t));
void record_directory (struct dinode *, ino_t);
struct dirinfo *lookup_directory (ino_t);
-void pinode (ino_t);
-
int reply (char *);
+void pfix (char *fix);
+void pinode (ino_t, char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
+int pwarn (char *, ...) __attribute__ ((format (printf, 1, 2)));
int pfatal (char *, ...) __attribute__ ((format (printf, 1, 2)));
void errexit (char *, ...) __attribute__ ((format (printf, 1, 2),
noreturn));
-int pwarn (char *, ...) __attribute__ ((format (printf, 1, 2)));
-