From dfc51728b7aca18198a990cc877ef5ec4771f9ac Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 18 Jul 2005 09:11:48 +0000 Subject: [PATCH] Made dirent filename len a macro; corrected comment bug in bios.h reported by Andrew Schilt . --- include/dirent.h | 4 +++- include/ibm/bios.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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 */