diff options
author | jkh <jkh@FreeBSD.org> | 1995-05-03 17:38:00 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-05-03 17:38:00 +0000 |
commit | 3864ecd3821e90681b8f8f986a168b06f9538a6a (patch) | |
tree | 42aeca4f576eedcc94f4679038feaacca3acec46 /lib/libdisk | |
parent | 687339a1f2d61a6d320ab967f1ec2109472db608 (diff) | |
download | FreeBSD-src-3864ecd3821e90681b8f8f986a168b06f9538a6a.zip FreeBSD-src-3864ecd3821e90681b8f8f986a168b06f9538a6a.tar.gz |
Export the chunk names properly.
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/disk.c | 14 | ||||
-rw-r--r-- | lib/libdisk/libdisk.h | 5 | ||||
-rw-r--r-- | lib/libdisk/tst01.c | 4 |
3 files changed, 16 insertions, 7 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index 03c30c5..884a3ae 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: disk.c,v 1.12 1995/05/02 20:16:16 jkh Exp $ + * $Id: disk.c,v 1.13 1995/05/03 06:30:55 phk Exp $ * */ @@ -26,6 +26,18 @@ #define DOSPTYP_EXTENDED 5 #define DOSPTYP_ONTRACK 84 +char *chunk_n[] = { + "whole", + "unknown", + "fat", + "freebsd", + "extended", + "part", + "unused", + "reserved", + NULL +}; + struct disk * Open_Disk(char *name) { diff --git a/lib/libdisk/libdisk.h b/lib/libdisk/libdisk.h index 8758178..b3305a5 100644 --- a/lib/libdisk/libdisk.h +++ b/lib/libdisk/libdisk.h @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: libdisk.h,v 1.8 1995/05/01 21:30:24 jkh Exp $ + * $Id: libdisk.h,v 1.9 1995/05/03 06:30:57 phk Exp $ * */ @@ -15,8 +15,7 @@ typedef enum {whole, unknown, fat, freebsd, extended, part, unused, reserved} chunk_e; -#define CHAR_N static char *chunk_n[] = { \ - "whole","unknown","fat","freebsd","extended","part","unused","reserved",0}; +extern char *chunk_n[]; struct disk { char *name; diff --git a/lib/libdisk/tst01.c b/lib/libdisk/tst01.c index 68ecb3d..5e98a98 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.7 1995/04/30 11:04:16 phk Exp $ + * $Id: tst01.c,v 1.8 1995/05/01 04:05:26 phk Exp $ * */ @@ -23,8 +23,6 @@ #include <sys/types.h> #include "libdisk.h" -CHAR_N; - u_char mbr[] = { 250,51,192,142,208,188,0,124,139,244,80,7,80,31,251,252,191,0,6,185,0,1, 242,165,234,29,6,0,0,190,190,7,179,4,128,60,128,116,14,128,60,0,117,28, |