summaryrefslogtreecommitdiffstats
path: root/src/core/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/image.c')
-rw-r--r--src/core/image.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 277d09a92..0d188c308 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -37,12 +37,6 @@
/** List of registered images */
struct list_head images = LIST_HEAD_INIT ( images );
-/** List of image types */
-static struct image_type image_types[0]
- __table_start ( struct image_type, image_types );
-static struct image_type image_types_end[0]
- __table_end ( struct image_type, image_types );
-
/**
* Free executable/loadable image
*
@@ -219,7 +213,7 @@ int image_autoload ( struct image *image ) {
return image_load ( image );
/* Otherwise probe for a suitable type */
- for ( type = image_types ; type < image_types_end ; type++ ) {
+ for_each_table_entry ( type, IMAGE_TYPES ) {
DBGC ( image, "IMAGE %p trying type %s\n", image, type->name );
rc = image_load_type ( image, type );
if ( image->type == NULL )