summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/device.h
diff options
context:
space:
mode:
authorMichael Brown2009-03-13 01:13:38 +0100
committerMichael Brown2009-03-13 03:10:21 +0100
commit3c68ff99eaff6e0d615349bdc85ea12ad8345284 (patch)
tree969a335fe8d1685203f7bfe90d07868dcbc1fe34 /src/include/gpxe/device.h
parent[tables] Redefine methods for accessing linker tables (diff)
downloadipxe-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.h4
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 */