summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-09-23 17:22:38 +0800
committerChong Yidong <cyd@gnu.org>2012-09-23 17:22:38 +0800
commit641cfd145e8d17956c3bf5d357c09fecb24f8e58 (patch)
tree10ed4601b9e6fcd4ebafe28763b6292908aa2248 /src/image.c
parentc462dda8c848d24cf84dd673b93d7ee8c8143b4e (diff)
downloademacs-641cfd145e8d17956c3bf5d357c09fecb24f8e58.tar.gz
Fix last change.
* image.c (valid_image_p, make_image): Fix caller to lookup_image_type.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c
index 7c74df5457f..c5bed6f12ed 100644
--- a/src/image.c
+++ b/src/image.c
@@ -562,7 +562,7 @@ static Lisp_Object Qlaplace, Qemboss, Qedge_detection, Qheuristic;
/* Function prototypes. */
static struct image_type *define_image_type (struct image_type *, Lisp_Object);
-static struct image_type *lookup_image_type (Lisp_Object, Lisp_Object);
+static struct image_type *lookup_image_type (Lisp_Object);
static void image_error (const char *format, Lisp_Object, Lisp_Object);
static void x_laplace (struct frame *, struct image *);
static void x_emboss (struct frame *, struct image *);
@@ -648,7 +648,7 @@ valid_image_p (Lisp_Object object)
if (CONSP (tem) && SYMBOLP (XCAR (tem)))
{
struct image_type *type;
- type = lookup_image_type (XCAR (tem), Qnil);
+ type = lookup_image_type (XCAR (tem));
if (type)
valid_p = type->valid_p (object);
}
@@ -981,7 +981,7 @@ make_image (Lisp_Object spec, EMACS_UINT hash)
eassert (valid_image_p (spec));
img->dependencies = NILP (file) ? Qnil : list1 (file);
- img->type = lookup_image_type (image_spec_value (spec, QCtype, NULL), Qnil);
+ img->type = lookup_image_type (image_spec_value (spec, QCtype, NULL));
eassert (img->type != NULL);
img->spec = spec;
img->lisp_data = Qnil;