summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/tst01.c
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 08:29:07 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 08:29:07 +0000
commitbb2ad2880bc60129e56a6ddbd15fe918cff834d2 (patch)
treedf4d58dbb04d4c3caaef0cd6a8c16a453481faf5 /lib/libdisk/tst01.c
parentc86f0c7a71e7ade3e38b325c186a9cf374e0411e (diff)
downloadFreeBSD-src-bb2ad2880bc60129e56a6ddbd15fe918cff834d2.zip
FreeBSD-src-bb2ad2880bc60129e56a6ddbd15fe918cff834d2.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'lib/libdisk/tst01.c')
-rw-r--r--lib/libdisk/tst01.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/libdisk/tst01.c b/lib/libdisk/tst01.c
index 1c0c43e..506e3b9 100644
--- a/lib/libdisk/tst01.c
+++ b/lib/libdisk/tst01.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: tst01.c,v 1.12 1995/05/11 05:22:54 phk Exp $
+ * $Id: tst01.c,v 1.13 1995/05/12 18:50:00 phk Exp $
*
*/
@@ -112,9 +112,9 @@ Scan_Disk(struct disk *d)
printf(".%lu\nG: %lu.",l-1,l);
fflush(stdout);
}
- i = j;
+ i = j;
}
- }
+ }
close(fd);
}
@@ -135,7 +135,7 @@ main(int argc, char **argv)
exit(1);
}
d = Open_Disk(argv[1]);
- if (!d)
+ if (!d)
err(1,"Couldn't open disk %s",argv[1]);
sprintf(myprompt,"%s %s> ",argv[0],argv[1]);
@@ -192,41 +192,41 @@ main(int argc, char **argv)
All_FreeBSD(d);
continue;
}
- if (!strcasecmp(*cmds,"bios") && ncmd == 4) {
+ if (!strcasecmp(*cmds,"bios") && ncmd == 4) {
Set_Bios_Geom(d,
strtol(cmds[1],0,0),
strtol(cmds[2],0,0),
strtol(cmds[3],0,0));
continue;
}
- if (!strcasecmp(*cmds,"phys") && ncmd == 4) {
+ if (!strcasecmp(*cmds,"phys") && ncmd == 4) {
d = Set_Phys_Geom(d,
strtol(cmds[1],0,0),
strtol(cmds[2],0,0),
strtol(cmds[3],0,0));
continue;
}
- if (!strcasecmp(*cmds,"collapse")) {
+ if (!strcasecmp(*cmds,"collapse")) {
if (cmds[1])
while (Collapse_Chunk(d,
(struct chunk *)strtol(cmds[1],0,0)))
;
- else
+ else
Collapse_Disk(d);
continue;
- }
- if (!strcasecmp(*cmds,"list")) {
+ }
+ if (!strcasecmp(*cmds,"list")) {
cp = Disk_Names();
printf("Disks:");
for(i=0;cp[i];i++) {
printf(" %s",cp[i]);
free(cp[i]);
- }
+ }
free(cp);
continue;
}
- if (!strcasecmp(*cmds,"create") && ncmd == 6) {
-
+ if (!strcasecmp(*cmds,"create") && ncmd == 6) {
+
printf("Create=%d\n",
Create_Chunk(d,
strtol(cmds[1],0,0),
@@ -294,7 +294,7 @@ main(int argc, char **argv)
for(i=0;chunk_n[i];i++)
printf("%d = %s%s",i,chunk_n[i],i == 4 ? "\n\t" : " ");
printf("\n");
-
+
}
exit (0);
}
OpenPOWER on IntegriCloud