diff options
author | grog <grog@FreeBSD.org> | 1999-01-06 04:07:49 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-01-06 04:07:49 +0000 |
commit | 229855aa3702741c922814635c127da0f7540ad3 (patch) | |
tree | 2364547dfbdea9806f61780149deac32dabde907 /sbin | |
parent | a44cf1006b28d98b48060e0fc61b280e09482fac (diff) | |
download | FreeBSD-src-229855aa3702741c922814635c127da0f7540ad3.zip FreeBSD-src-229855aa3702741c922814635c127da0f7540ad3.tar.gz |
Fix problems compiling without -DVINUMDEBUG
Reported by: dg
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/vinum/list.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/vinum/list.c b/sbin/vinum/list.c index b5b2cc6..44dcc2f 100644 --- a/sbin/vinum/list.c +++ b/sbin/vinum/list.c @@ -35,7 +35,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: list.c,v 1.5 1998/11/03 06:39:39 grog Exp $ + * $Id: list.c,v 1.6 1998/12/28 16:32:39 peter Exp $ */ #include <ctype.h> @@ -629,9 +629,11 @@ vinum_info(int argc, char *argv[], char *argv0[]) { struct meminfo meminfo; struct mc malloced; - struct rqinfo rq; int i; - +#if VINUMDEBUG + struct rqinfo rq; +#endif + if (ioctl(superdev, VINUM_GETCONFIG, &vinum_conf) < 0) { perror("Can't get vinum config"); return; @@ -664,6 +666,7 @@ vinum_info(int argc, char *argv[], char *argv0[]) malloced.line, (char *) &malloced.file); } +#if VINUMDEBUG if (Verbose) { printf("\nTime\t\t Event\t Buf\tSD\tDev\tOffset\tBytes\tDoffset\tGoffset\n\n"); for (i = RQINFO_SIZE - 1; i >= 0; i--) { /* go through the request list in order */ @@ -751,6 +754,7 @@ vinum_info(int argc, char *argv[], char *argv0[]) } } } +#endif } /* Print config file to a file. This is a userland version |