From af51114352e1ba66f26f6514fbd74f0cedfd401d Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 23 Dec 2017 14:27:56 +0000 Subject: [PATCH] remove duplicate jpeg suffs definition --- libvips/foreign/jpegload.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libvips/foreign/jpegload.c b/libvips/foreign/jpegload.c index dfe5b868..0e2a9b49 100644 --- a/libvips/foreign/jpegload.c +++ b/libvips/foreign/jpegload.c @@ -201,8 +201,6 @@ vips_foreign_load_jpeg_file_load( VipsForeignLoad *load ) return( 0 ); } -static const char *jpeg_suffs[] = { ".jpg", ".jpeg", ".jpe", NULL }; - static void vips_foreign_load_jpeg_file_class_init( VipsForeignLoadJpegFileClass *class ) { @@ -217,7 +215,7 @@ vips_foreign_load_jpeg_file_class_init( VipsForeignLoadJpegFileClass *class ) object_class->nickname = "jpegload"; object_class->description = _( "load jpeg from file" ); - foreign_class->suffs = jpeg_suffs; + foreign_class->suffs = vips__jpeg_suffs; /* We are fast at is_a(), so high priority. */