Export the chunk names properly.
This commit is contained in:
parent
9fc5823a7a
commit
a7a5bb1246
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user