summaryrefslogtreecommitdiffstats
path: root/src/net
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/net
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/net')
-rw-r--r--src/net/udp/dhcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c
index 0f4459956..97e64617f 100644
--- a/src/net/udp/dhcp.c
+++ b/src/net/udp/dhcp.c
@@ -900,8 +900,8 @@ int dhcp_create_request ( struct dhcp_packet *dhcppkt,
dhcppkt->dhcphdr->ciaddr = ciaddr;
/* Add options to identify the feature list */
- dhcp_features = table_start ( uint8_t, DHCP_FEATURES );
- dhcp_features_len = table_num_entries ( uint8_t, DHCP_FEATURES );
+ dhcp_features = table_start ( DHCP_FEATURES );
+ dhcp_features_len = table_num_entries ( DHCP_FEATURES );
if ( ( rc = dhcppkt_store ( dhcppkt, DHCP_EB_ENCAP, dhcp_features,
dhcp_features_len ) ) != 0 ) {
DBG ( "DHCP could not set features list option: %s\n",