diff options
author | Michael Brown | 2009-03-13 01:13:38 +0100 |
---|---|---|
committer | Michael Brown | 2009-03-13 03:10:21 +0100 |
commit | 3c68ff99eaff6e0d615349bdc85ea12ad8345284 (patch) | |
tree | 969a335fe8d1685203f7bfe90d07868dcbc1fe34 /src/include/gpxe/device.h | |
parent | [tables] Redefine methods for accessing linker tables (diff) | |
download | ipxe-3c68ff99eaff6e0d615349bdc85ea12ad8345284.tar.gz ipxe-3c68ff99eaff6e0d615349bdc85ea12ad8345284.tar.xz ipxe-3c68ff99eaff6e0d615349bdc85ea12ad8345284.zip |
[tables] Incorporate table data type information into table definition
Eliminate the potential for mismatches between table names and the
table entry data type by incorporating the data type into the
definition of the table, rather than specifying it explicitly in each
table accessor method.
Diffstat (limited to 'src/include/gpxe/device.h')
-rw-r--r-- | src/include/gpxe/device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gpxe/device.h b/src/include/gpxe/device.h index bcc848aa..9017f9b9 100644 --- a/src/include/gpxe/device.h +++ b/src/include/gpxe/device.h @@ -103,9 +103,9 @@ struct root_driver { }; /** Root device table */ -#define ROOT_DEVICES "root_devices" +#define ROOT_DEVICES __table ( struct root_device, "root_devices" ) /** Declare a root device */ -#define __root_device __table ( struct root_device, ROOT_DEVICES, 01 ) +#define __root_device __table_entry ( ROOT_DEVICES, 01 ) #endif /* _GPXE_DEVICE_H */ |