Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_msdos add a prototype for _readfat() added in last...
details: https://anonhg.NetBSD.org/src/rev/a52b958e6418
branches: trunk
changeset: 485379:a52b958e6418
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Apr 26 16:45:02 2000 +0000
description:
add a prototype for _readfat() added in last commit and make it static, so
that it's possible to compile this with -Wstrict-prototypes -Wmissing-prototypes
Breakage reported by Jeff Rizzo <riz%boogers.sf.ca.us@localhost> on current-users.
diffstat:
sbin/fsck_msdos/fat.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 236ce7714ffd -r a52b958e6418 sbin/fsck_msdos/fat.c
--- a/sbin/fsck_msdos/fat.c Wed Apr 26 16:28:17 2000 +0000
+++ b/sbin/fsck_msdos/fat.c Wed Apr 26 16:45:02 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fat.c,v 1.10 2000/04/25 23:02:51 jdolecek Exp $ */
+/* $NetBSD: fat.c,v 1.11 2000/04/26 16:45:02 jdolecek Exp $ */
/*
* Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fat.c,v 1.10 2000/04/25 23:02:51 jdolecek Exp $");
+__RCSID("$NetBSD: fat.c,v 1.11 2000/04/26 16:45:02 jdolecek Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -50,6 +50,7 @@
static int checkclnum __P((struct bootblock *, int, cl_t, cl_t *));
static int clustdiffer __P((cl_t, cl_t *, cl_t *, int));
static int tryclear __P((struct bootblock *, struct fatEntry *, cl_t, cl_t *));
+static int _readfat __P((int, struct bootblock *, int, u_char **));
/*
* Check a cluster number for valid value
@@ -89,7 +90,7 @@
/*
* Read a FAT from disk. Returns 1 if successful, 0 otherwise.
*/
-int
+static int
_readfat(fs, boot, no, buffer)
int fs;
struct bootblock *boot;
Home |
Main Index |
Thread Index |
Old Index