diff options
| author | Paul Eggert | 2011-02-06 00:51:35 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-06 00:51:35 -0800 |
| commit | b8dc29e93c73c5b09b5d91c16e5101491a095412 (patch) | |
| tree | ce64ebb2bcdeb6aa8dfed35e5221fd6eb5f4ca6f /src | |
| parent | 91ccade49b1403d469fa5441b16598e08d6604c9 (diff) | |
| download | emacs-b8dc29e93c73c5b09b5d91c16e5101491a095412.tar.gz emacs-b8dc29e93c73c5b09b5d91c16e5101491a095412.zip | |
* image.c: conform to C89 pointer rules
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/image.c | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 37fff50aca1..a8790fad31d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | (Fsubstitute_command_keys): Likewise. | 14 | (Fsubstitute_command_keys): Likewise. |
| 15 | * xfns.c (Fx_open_connection, Fx_window_property): Likewise. | 15 | * xfns.c (Fx_open_connection, Fx_window_property): Likewise. |
| 16 | * bitmaps/gray.xbm (gray_bits): Likewise. | 16 | * bitmaps/gray.xbm (gray_bits): Likewise. |
| 17 | * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise. | ||
| 17 | 18 | ||
| 18 | 2011-02-05 Paul Eggert <eggert@cs.ucla.edu> | 19 | 2011-02-05 Paul Eggert <eggert@cs.ucla.edu> |
| 19 | 20 | ||
diff --git a/src/image.c b/src/image.c index 717d41eb91b..314849ef750 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2226,7 +2226,7 @@ static int xbm_load_image (struct frame *f, struct image *img, | |||
| 2226 | static int xbm_image_p (Lisp_Object object); | 2226 | static int xbm_image_p (Lisp_Object object); |
| 2227 | static int xbm_read_bitmap_data (struct frame *f, | 2227 | static int xbm_read_bitmap_data (struct frame *f, |
| 2228 | unsigned char *, unsigned char *, | 2228 | unsigned char *, unsigned char *, |
| 2229 | int *, int *, unsigned char **, int); | 2229 | int *, int *, char **, int); |
| 2230 | static int xbm_file_p (Lisp_Object); | 2230 | static int xbm_file_p (Lisp_Object); |
| 2231 | 2231 | ||
| 2232 | 2232 | ||
| @@ -2614,7 +2614,7 @@ Create_Pixmap_From_Bitmap_Data (struct frame *f, struct image *img, char *data, | |||
| 2614 | 2614 | ||
| 2615 | static int | 2615 | static int |
| 2616 | xbm_read_bitmap_data (struct frame *f, unsigned char *contents, unsigned char *end, | 2616 | xbm_read_bitmap_data (struct frame *f, unsigned char *contents, unsigned char *end, |
| 2617 | int *width, int *height, unsigned char **data, | 2617 | int *width, int *height, char **data, |
| 2618 | int inhibit_image_error) | 2618 | int inhibit_image_error) |
| 2619 | { | 2619 | { |
| 2620 | unsigned char *s = contents; | 2620 | unsigned char *s = contents; |
| @@ -2622,7 +2622,7 @@ xbm_read_bitmap_data (struct frame *f, unsigned char *contents, unsigned char *e | |||
| 2622 | int padding_p = 0; | 2622 | int padding_p = 0; |
| 2623 | int v10 = 0; | 2623 | int v10 = 0; |
| 2624 | int bytes_per_line, i, nbytes; | 2624 | int bytes_per_line, i, nbytes; |
| 2625 | unsigned char *p; | 2625 | char *p; |
| 2626 | int value; | 2626 | int value; |
| 2627 | int LA1; | 2627 | int LA1; |
| 2628 | 2628 | ||
| @@ -2706,7 +2706,7 @@ xbm_read_bitmap_data (struct frame *f, unsigned char *contents, unsigned char *e | |||
| 2706 | 2706 | ||
| 2707 | bytes_per_line = (*width + 7) / 8 + padding_p; | 2707 | bytes_per_line = (*width + 7) / 8 + padding_p; |
| 2708 | nbytes = bytes_per_line * *height; | 2708 | nbytes = bytes_per_line * *height; |
| 2709 | p = *data = (unsigned char *) xmalloc (nbytes); | 2709 | p = *data = (char *) xmalloc (nbytes); |
| 2710 | 2710 | ||
| 2711 | if (v10) | 2711 | if (v10) |
| 2712 | { | 2712 | { |
| @@ -2768,7 +2768,7 @@ xbm_load_image (struct frame *f, struct image *img, unsigned char *contents, | |||
| 2768 | unsigned char *end) | 2768 | unsigned char *end) |
| 2769 | { | 2769 | { |
| 2770 | int rc; | 2770 | int rc; |
| 2771 | unsigned char *data; | 2771 | char *data; |
| 2772 | int success_p = 0; | 2772 | int success_p = 0; |
| 2773 | 2773 | ||
| 2774 | rc = xbm_read_bitmap_data (f, contents, end, &img->width, &img->height, | 2774 | rc = xbm_read_bitmap_data (f, contents, end, &img->width, &img->height, |
| @@ -2936,7 +2936,7 @@ xbm_load (struct frame *f, struct image *img) | |||
| 2936 | else if (STRINGP (data)) | 2936 | else if (STRINGP (data)) |
| 2937 | bits = SSDATA (data); | 2937 | bits = SSDATA (data); |
| 2938 | else | 2938 | else |
| 2939 | bits = XBOOL_VECTOR (data)->data; | 2939 | bits = (char *) XBOOL_VECTOR (data)->data; |
| 2940 | 2940 | ||
| 2941 | #ifdef WINDOWSNT | 2941 | #ifdef WINDOWSNT |
| 2942 | { | 2942 | { |