Make this compile with -Werror.
This commit is contained in:
parent
78bd4a1051
commit
47efd9f35e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dumplfs.c,v 1.6 1995/06/07 17:16:05 cgd Exp $ */
|
||||
/* $NetBSD: dumplfs.c,v 1.7 1995/12/14 22:36:34 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -43,7 +43,7 @@ static char copyright[] =
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)dumplfs.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: dumplfs.c,v 1.6 1995/06/07 17:16:05 cgd Exp $";
|
||||
static char rcsid[] = "$NetBSD: dumplfs.c,v 1.7 1995/12/14 22:36:34 thorpej Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -355,6 +355,11 @@ dump_dinode(dip)
|
|||
struct dinode *dip;
|
||||
{
|
||||
int i;
|
||||
time_t at, mt, ct;
|
||||
|
||||
at = dip->di_atime;
|
||||
mt = dip->di_mtime;
|
||||
ct = dip->di_ctime;
|
||||
|
||||
(void)printf("%s%d\t%s%d\t%s%d\t%s%d\t%s%d\n",
|
||||
"mode ", dip->di_mode,
|
||||
|
@ -363,9 +368,9 @@ dump_dinode(dip)
|
|||
"gid ", dip->di_gid,
|
||||
"size ", dip->di_size);
|
||||
(void)printf("%s%s%s%s%s%s",
|
||||
"atime ", ctime(&dip->di_atime),
|
||||
"mtime ", ctime(&dip->di_mtime),
|
||||
"ctime ", ctime(&dip->di_ctime));
|
||||
"atime ", ctime(&at),
|
||||
"mtime ", ctime(&mt),
|
||||
"ctime ", ctime(&ct));
|
||||
(void)printf("inum %d\n", dip->di_inumber);
|
||||
(void)printf("Direct Addresses\n");
|
||||
for (i = 0; i < NDADDR; i++) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fsdbutil.c,v 1.2 1995/10/08 23:18:12 thorpej Exp $ */
|
||||
/* $NetBSD: fsdbutil.c,v 1.3 1995/12/14 22:30:45 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 John T. Kohl
|
||||
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$NetBSD: fsdbutil.c,v 1.2 1995/10/08 23:18:12 thorpej Exp $";
|
||||
static char rcsid[] = "$NetBSD: fsdbutil.c,v 1.3 1995/12/14 22:30:45 thorpej Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -96,6 +96,7 @@ printstat(cp, inum, dp)
|
|||
{
|
||||
struct group *grp;
|
||||
struct passwd *pw;
|
||||
time_t t;
|
||||
char *p;
|
||||
|
||||
printf("%s: ", cp);
|
||||
|
@ -130,13 +131,16 @@ printstat(cp, inum, dp)
|
|||
break;
|
||||
}
|
||||
printf("I=%lu MODE=%o SIZE=%qu", inum, dp->di_mode, dp->di_size);
|
||||
p = ctime(&dp->di_mtime);
|
||||
t = dp->di_mtime;
|
||||
p = ctime(&t);
|
||||
printf("\n\tMTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
||||
dp->di_mtimensec);
|
||||
p = ctime(&dp->di_ctime);
|
||||
t = dp->di_ctime;
|
||||
p = ctime(&t);
|
||||
printf("\n\tCTIME=%15.15s %4.4s [%d nsec]", &p[4], &p[20],
|
||||
dp->di_ctimensec);
|
||||
p = ctime(&dp->di_atime);
|
||||
t = dp->di_atime;
|
||||
p = ctime(&t);
|
||||
printf("\n\tATIME=%15.15s %4.4s [%d nsec]\n", &p[4], &p[20],
|
||||
dp->di_atimensec);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dumplfs.c,v 1.6 1995/06/07 17:16:05 cgd Exp $ */
|
||||
/* $NetBSD: dumplfs.c,v 1.7 1995/12/14 22:36:34 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -43,7 +43,7 @@ static char copyright[] =
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)dumplfs.c 8.1 (Berkeley) 6/5/93";
|
||||
#else
|
||||
static char rcsid[] = "$NetBSD: dumplfs.c,v 1.6 1995/06/07 17:16:05 cgd Exp $";
|
||||
static char rcsid[] = "$NetBSD: dumplfs.c,v 1.7 1995/12/14 22:36:34 thorpej Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -355,6 +355,11 @@ dump_dinode(dip)
|
|||
struct dinode *dip;
|
||||
{
|
||||
int i;
|
||||
time_t at, mt, ct;
|
||||
|
||||
at = dip->di_atime;
|
||||
mt = dip->di_mtime;
|
||||
ct = dip->di_ctime;
|
||||
|
||||
(void)printf("%s%d\t%s%d\t%s%d\t%s%d\t%s%d\n",
|
||||
"mode ", dip->di_mode,
|
||||
|
@ -363,9 +368,9 @@ dump_dinode(dip)
|
|||
"gid ", dip->di_gid,
|
||||
"size ", dip->di_size);
|
||||
(void)printf("%s%s%s%s%s%s",
|
||||
"atime ", ctime(&dip->di_atime),
|
||||
"mtime ", ctime(&dip->di_mtime),
|
||||
"ctime ", ctime(&dip->di_ctime));
|
||||
"atime ", ctime(&at),
|
||||
"mtime ", ctime(&mt),
|
||||
"ctime ", ctime(&ct));
|
||||
(void)printf("inum %d\n", dip->di_inumber);
|
||||
(void)printf("Direct Addresses\n");
|
||||
for (i = 0; i < NDADDR; i++) {
|
||||
|
|
Loading…
Reference in New Issue