diff options
| author | Paul Eggert | 2011-03-09 17:03:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-09 17:03:29 -0800 |
| commit | c0951e534c34cb4400bf9dcb18ae40b31a684bae (patch) | |
| tree | 9795a1c34b7038963ae4619dc2ceba946fd6208f /src | |
| parent | 6b43790020907a8199984a44f5624f842edea754 (diff) | |
| download | emacs-c0951e534c34cb4400bf9dcb18ae40b31a684bae.tar.gz emacs-c0951e534c34cb4400bf9dcb18ae40b31a684bae.zip | |
* xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/xfns.c | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4d9bd6234fa..3a870511bba 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * xfns.c (x_decode_color, x_set_name, x_window): Now static. | 3 | * xfns.c (x_decode_color, x_set_name, x_window): Now static. |
| 4 | (Fx_create_frame): Add braces to silence GCC warning. | 4 | (Fx_create_frame): Add braces to silence GCC warning. |
| 5 | (Fx_file_dialog, Fx_select_font): Fix pointer signedness. | ||
| 5 | 6 | ||
| 6 | 2011-03-09 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2011-03-09 Paul Eggert <eggert@cs.ucla.edu> |
| 7 | 8 | ||
diff --git a/src/xfns.c b/src/xfns.c index 8ba91f9ffb8..45e0e13dcbc 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -5566,11 +5566,11 @@ Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */) | |||
| 5566 | BLOCK_INPUT; | 5566 | BLOCK_INPUT; |
| 5567 | 5567 | ||
| 5568 | if (STRINGP (default_filename)) | 5568 | if (STRINGP (default_filename)) |
| 5569 | cdef_file = SDATA (default_filename); | 5569 | cdef_file = SSDATA (default_filename); |
| 5570 | else | 5570 | else |
| 5571 | cdef_file = SDATA (dir); | 5571 | cdef_file = SSDATA (dir); |
| 5572 | 5572 | ||
| 5573 | fn = xg_get_file_name (f, SDATA (prompt), cdef_file, | 5573 | fn = xg_get_file_name (f, SSDATA (prompt), cdef_file, |
| 5574 | ! NILP (mustmatch), | 5574 | ! NILP (mustmatch), |
| 5575 | ! NILP (only_dir_p)); | 5575 | ! NILP (only_dir_p)); |
| 5576 | 5576 | ||
| @@ -5626,12 +5626,12 @@ If FRAME is omitted or nil, it defaults to the selected frame. */) | |||
| 5626 | XSETFONT (font, FRAME_FONT (f)); | 5626 | XSETFONT (font, FRAME_FONT (f)); |
| 5627 | font_param = Ffont_get (font, intern (":name")); | 5627 | font_param = Ffont_get (font, intern (":name")); |
| 5628 | if (STRINGP (font_param)) | 5628 | if (STRINGP (font_param)) |
| 5629 | default_name = xstrdup (SDATA (font_param)); | 5629 | default_name = xstrdup (SSDATA (font_param)); |
| 5630 | else | 5630 | else |
| 5631 | { | 5631 | { |
| 5632 | font_param = Fframe_parameter (frame, Qfont_param); | 5632 | font_param = Fframe_parameter (frame, Qfont_param); |
| 5633 | if (STRINGP (font_param)) | 5633 | if (STRINGP (font_param)) |
| 5634 | default_name = xstrdup (SDATA (font_param)); | 5634 | default_name = xstrdup (SSDATA (font_param)); |
| 5635 | } | 5635 | } |
| 5636 | 5636 | ||
| 5637 | if (default_name == NULL && x_last_font_name != NULL) | 5637 | if (default_name == NULL && x_last_font_name != NULL) |