From 3c68ff99eaff6e0d615349bdc85ea12ad8345284 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 13 Mar 2009 00:13:38 +0000 Subject: [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. --- src/core/resolv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/resolv.c b/src/core/resolv.c index 667f2dedf..33e341d2d 100644 --- a/src/core/resolv.c +++ b/src/core/resolv.c @@ -217,7 +217,7 @@ static void resolv_mux_done ( struct resolv_interface *resolv, /* Attempt next child resolver, if possible */ mux->resolver++; - if ( mux->resolver >= table_end ( struct resolver, RESOLVERS ) ) { + if ( mux->resolver >= table_end ( RESOLVERS ) ) { DBGC ( mux, "RESOLV %p failed to resolve name\n", mux ); goto finished; } @@ -256,7 +256,7 @@ int resolv ( struct resolv_interface *resolv, const char *name, return -ENOMEM; resolv_init ( &mux->parent, &null_resolv_ops, &mux->refcnt ); resolv_init ( &mux->child, &resolv_mux_child_ops, &mux->refcnt ); - mux->resolver = table_start ( struct resolver, RESOLVERS ); + mux->resolver = table_start ( RESOLVERS ); memcpy ( &mux->sa, sa, sizeof ( mux->sa ) ); memcpy ( mux->name, name, name_len ); -- cgit v1.2.3-55-g7522