]> git.eshelyaron.com Git - emacs.git/commitdiff
(load_pixmap): Use CHECK_TYPE.
authorKim F. Storm <storm@cua.dk>
Wed, 12 Jul 2006 13:22:10 +0000 (13:22 +0000)
committerKim F. Storm <storm@cua.dk>
Wed, 12 Jul 2006 13:22:10 +0000 (13:22 +0000)
src/xfaces.c

index 30e1c7aa5dcb27b05ebd59007ea0e1c59b612c8a..14572af966dd444fc46948d02e819c1b86a0eae9 100644 (file)
@@ -1171,14 +1171,11 @@ load_pixmap (f, name, w_ptr, h_ptr)
      unsigned int *w_ptr, *h_ptr;
 {
   int bitmap_id;
-  Lisp_Object tem;
 
   if (NILP (name))
     return 0;
 
-  tem = Fbitmap_spec_p (name);
-  if (NILP (tem))
-    wrong_type_argument (Qbitmap_spec_p, name);
+  CHECK_TYPE (!NILP (Fbitmap_spec_p (name)), Qbitmap_spec_p, name);
 
   BLOCK_INPUT;
   if (CONSP (name))