diff options
author | phk <phk@FreeBSD.org> | 1995-05-10 05:57:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-05-10 05:57:04 +0000 |
commit | b06a2da1188043774a21f325c65893b1dd1937ba (patch) | |
tree | a7a3e845ea2cb1759f8334a843c91f607580ff3b /lib/libdisk/tst01.c | |
parent | f900359daa37c3aa08178cd6a7f487d8bdde66ac (diff) | |
download | FreeBSD-src-b06a2da1188043774a21f325c65893b1dd1937ba.zip FreeBSD-src-b06a2da1188043774a21f325c65893b1dd1937ba.tar.gz |
Create_Chunk_DWIM() is here, though it doesn't quite do what the name implies.
Diffstat (limited to 'lib/libdisk/tst01.c')
-rw-r--r-- | lib/libdisk/tst01.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/libdisk/tst01.c b/lib/libdisk/tst01.c index 6670963..b32253a 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.9 1995/05/03 17:38:00 jkh Exp $ + * $Id: tst01.c,v 1.10 1995/05/04 07:00:56 phk Exp $ * */ @@ -168,6 +168,16 @@ main(int argc, char **argv) if (!strcasecmp(*cmds,"exit")) { break; } if (!strcasecmp(*cmds,"q")) { break; } if (!strcasecmp(*cmds,"x")) { break; } + if (!strcasecmp(*cmds,"dwim") && ncmd == 6) { + printf("dwim = %p\n", + Create_Chunk_DWIM(d, + (struct chunk *)strtol(cmds[1],0,0)), + strtol(cmds[2],0,0), + strtol(cmds[3],0,0), + strtol(cmds[4],0,0), + strtol(cmds[5],0,0) ); + continue; + } if (!strcasecmp(*cmds,"delete") && ncmd == 2) { printf("delete = %d\n", Delete_Chunk(d, |