diff options
| author | Kim F. Storm | 2006-07-12 13:22:10 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-07-12 13:22:10 +0000 |
| commit | d5ddd1a30447fe6c83003c907db95c9f5c5b2148 (patch) | |
| tree | e788849b3209d864487e5a513e3d18c78d633752 /src | |
| parent | 663fbbba4d9f50656e3f278fda1f38f3eafd2339 (diff) | |
| download | emacs-d5ddd1a30447fe6c83003c907db95c9f5c5b2148.tar.gz emacs-d5ddd1a30447fe6c83003c907db95c9f5c5b2148.zip | |
(load_pixmap): Use CHECK_TYPE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 30e1c7aa5dc..14572af966d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -1171,14 +1171,11 @@ load_pixmap (f, name, w_ptr, h_ptr) | |||
| 1171 | unsigned int *w_ptr, *h_ptr; | 1171 | unsigned int *w_ptr, *h_ptr; |
| 1172 | { | 1172 | { |
| 1173 | int bitmap_id; | 1173 | int bitmap_id; |
| 1174 | Lisp_Object tem; | ||
| 1175 | 1174 | ||
| 1176 | if (NILP (name)) | 1175 | if (NILP (name)) |
| 1177 | return 0; | 1176 | return 0; |
| 1178 | 1177 | ||
| 1179 | tem = Fbitmap_spec_p (name); | 1178 | CHECK_TYPE (!NILP (Fbitmap_spec_p (name)), Qbitmap_spec_p, name); |
| 1180 | if (NILP (tem)) | ||
| 1181 | wrong_type_argument (Qbitmap_spec_p, name); | ||
| 1182 | 1179 | ||
| 1183 | BLOCK_INPUT; | 1180 | BLOCK_INPUT; |
| 1184 | if (CONSP (name)) | 1181 | if (CONSP (name)) |