Deleted Added
full compact
dumpfs.c (71073) dumpfs.c (92806)
1/*
2 * Copyright (c) 1983, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95";
43#endif
44static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95";
43#endif
44static const char rcsid[] =
45 "$FreeBSD: head/sbin/dumpfs/dumpfs.c 71073 2001-01-15 18:30:40Z iedowse $";
45 "$FreeBSD: head/sbin/dumpfs/dumpfs.c 92806 2002-03-20 17:55:10Z obrien $";
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/time.h>
50
51#include <ufs/ffs/fs.h>
52
53#include <err.h>

--- 22 unchanged lines hidden (view full) ---

76void pbits __P((void *, int));
77void usage __P((void));
78
79int
80main(argc, argv)
81 int argc;
82 char *argv[];
83{
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/time.h>
50
51#include <ufs/ffs/fs.h>
52
53#include <err.h>

--- 22 unchanged lines hidden (view full) ---

76void pbits __P((void *, int));
77void usage __P((void));
78
79int
80main(argc, argv)
81 int argc;
82 char *argv[];
83{
84 register struct fstab *fs;
84 struct fstab *fs;
85 int ch, eval;
86
87 while ((ch = getopt(argc, argv, "")) != -1)
88 switch(ch) {
89 case '?':
90 default:
91 usage();
92 }

--- 214 unchanged lines hidden (view full) ---

307 }
308 printf("\n");
309 }
310 return (0);
311};
312
313void
314pbits(vp, max)
85 int ch, eval;
86
87 while ((ch = getopt(argc, argv, "")) != -1)
88 switch(ch) {
89 case '?':
90 default:
91 usage();
92 }

--- 214 unchanged lines hidden (view full) ---

307 }
308 printf("\n");
309 }
310 return (0);
311};
312
313void
314pbits(vp, max)
315 register void *vp;
315 void *vp;
316 int max;
317{
316 int max;
317{
318 register int i;
319 register char *p;
318 int i;
319 char *p;
320 int count, j;
321
322 for (count = i = 0, p = vp; i < max; i++)
323 if (isset(p, i)) {
324 if (count)
325 printf(",%s", count % 6 ? " " : "\n\t");
326 count++;
327 printf("%d", i);

--- 15 unchanged lines hidden ---
320 int count, j;
321
322 for (count = i = 0, p = vp; i < max; i++)
323 if (isset(p, i)) {
324 if (count)
325 printf(",%s", count % 6 ? " " : "\n\t");
326 count++;
327 printf("%d", i);

--- 15 unchanged lines hidden ---