From: Ben Gras Date: Mon, 18 Jul 2005 09:11:48 +0000 (+0000) Subject: Made dirent filename len a macro; corrected comment bug in bios.h reported X-Git-Tag: v3.1.0~607 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-keygen.html?a=commitdiff_plain;h=dfc51728b7aca18198a990cc877ef5ec4771f9ac;p=minix.git Made dirent filename len a macro; corrected comment bug in bios.h reported by Andrew Schilt . --- diff --git a/include/dirent.h b/include/dirent.h index fce36a13d..cd373f4ba 100755 --- a/include/dirent.h +++ b/include/dirent.h @@ -67,10 +67,12 @@ typedef struct { struct _fl_direct _v7f[FLEX_PER_V7]; /* V7 entry transformed to flex */ } DIR; +#define _DIRENT_NAME_LEN 61 + struct dirent { /* Largest entry (8 slots) */ ino_t d_ino; /* I-node number */ unsigned char d_extent; /* Extended with this many slots */ - char d_name[61]; /* Null terminated name */ + char d_name[_DIRENT_NAME_LEN]; /* Null terminated name */ }; /* Function Prototypes. */ diff --git a/include/ibm/bios.h b/include/ibm/bios.h index b5d22db4e..b3b1c9876 100644 --- a/include/ibm/bios.h +++ b/include/ibm/bios.h @@ -38,7 +38,7 @@ * used. Other addresses may be defined below when new features are added. */ -/* Parallel ports (LPT1-LPT4). */ +/* Serial ports (COM1-COM4). */ #define COM1_IO_PORT_ADDR 0x400 /* COM1 port address */ #define COM1_IO_PORT_SIZE 2L #define COM2_IO_PORT_ADDR 0x402 /* COM2 port address */ @@ -48,7 +48,7 @@ #define COM4_IO_PORT_ADDR 0x406 /* COM4 port address */ #define COM4_IO_PORT_SIZE 2L -/* Serial ports (COM1-COM4). */ +/* Parallel ports (LPT1-LPT4). */ #define LPT1_IO_PORT_ADDR 0x408 /* LPT1 port address */ #define LPT1_IO_PORT_SIZE 2L #define LPT2_IO_PORT_ADDR 0x40A /* LPT2 port address */