* cleanup for WARNS=1
* deprecate register * prefix hex numbers with '0x'
This commit is contained in:
parent
700617acfc
commit
26ba0ba0ba
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fsck.c,v 1.11 1997/06/23 01:03:35 mikel Exp $ */
|
||||
/* $NetBSD: fsck.c,v 1.12 1997/09/14 14:11:00 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Christos Zoulas. All rights reserved.
|
||||
@ -38,7 +38,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
static char rcsid[] = "$NetBSD: fsck.c,v 1.11 1997/06/23 01:03:35 mikel Exp $";
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: fsck.c,v 1.12 1997/09/14 14:11:00 lukem Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/mount.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fsutil.c,v 1.3 1996/10/22 16:57:51 christos Exp $ */
|
||||
/* $NetBSD: fsutil.c,v 1.4 1997/09/14 14:11:01 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -32,8 +32,10 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$NetBSD: fsutil.c,v 1.3 1996/10/22 16:57:51 christos Exp $";
|
||||
__RCSID("$NetBSD: fsutil.c,v 1.4 1997/09/14 14:11:01 lukem Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: preen.c,v 1.15 1996/09/28 19:21:42 christos Exp $ */
|
||||
/* $NetBSD: preen.c,v 1.16 1997/09/14 14:11:02 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993
|
||||
@ -33,11 +33,12 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)preen.c 8.3 (Berkeley) 12/6/94";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: preen.c,v 1.15 1996/09/28 19:21:42 christos Exp $";
|
||||
__RCSID("$NetBSD: preen.c,v 1.16 1997/09/14 14:11:02 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -177,7 +178,7 @@ checkfstab(flags, maxrun, docheck, checkit)
|
||||
p = d->d_part.tqh_first;
|
||||
|
||||
if (flags & (CHECK_DEBUG|CHECK_VERBOSE))
|
||||
(void) printf("done %s: %s (%s) = %x\n",
|
||||
(void) printf("done %s: %s (%s) = 0x%x\n",
|
||||
p->p_type, p->p_devname, p->p_mntpt,
|
||||
status);
|
||||
|
||||
@ -251,7 +252,7 @@ finddisk(name)
|
||||
const char *name;
|
||||
{
|
||||
const char *p;
|
||||
size_t len;
|
||||
size_t len = 0;
|
||||
struct diskentry *d;
|
||||
|
||||
for (p = name + strlen(name) - 1; p >= name; --p)
|
||||
@ -322,11 +323,11 @@ addpart(type, devname, mntpt, auxarg)
|
||||
|
||||
static int
|
||||
startdisk(d, checkit)
|
||||
register struct diskentry *d;
|
||||
struct diskentry *d;
|
||||
int (*checkit) __P((const char *, const char *, const char *, void *,
|
||||
pid_t *));
|
||||
{
|
||||
register struct partentry *p = d->d_part.tqh_first;
|
||||
struct partentry *p = d->d_part.tqh_first;
|
||||
int rv;
|
||||
|
||||
while ((rv = (*checkit)(p->p_type, p->p_devname, p->p_mntpt,
|
||||
|
Loading…
x
Reference in New Issue
Block a user