diff options
| author | Paul Eggert | 2011-02-06 01:03:25 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-06 01:03:25 -0800 |
| commit | 847c082469460ee3d8fb573f70320c6bb096fda2 (patch) | |
| tree | ea5ce53a2bc748a9e6300c803e5063c81c87ea1f /src | |
| parent | b8dc29e93c73c5b09b5d91c16e5101491a095412 (diff) | |
| download | emacs-847c082469460ee3d8fb573f70320c6bb096fda2.tar.gz emacs-847c082469460ee3d8fb573f70320c6bb096fda2.zip | |
* keyboard.c: conform to C89 pointer rules
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a8790fad31d..ffd669b4ad7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -15,6 +15,8 @@ | |||
| 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 | * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise. |
| 18 | * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input): | ||
| 19 | Likewise. | ||
| 18 | 20 | ||
| 19 | 2011-02-05 Paul Eggert <eggert@cs.ucla.edu> | 21 | 2011-02-05 Paul Eggert <eggert@cs.ucla.edu> |
| 20 | 22 | ||
diff --git a/src/keyboard.c b/src/keyboard.c index d53321306db..71d6456e57c 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -483,7 +483,7 @@ echo_char (Lisp_Object c) | |||
| 483 | ptr = buffer + offset; | 483 | ptr = buffer + offset; |
| 484 | } | 484 | } |
| 485 | 485 | ||
| 486 | ptr += copy_text (SDATA (name), ptr, nbytes, | 486 | ptr += copy_text (SDATA (name), (unsigned char *) ptr, nbytes, |
| 487 | STRING_MULTIBYTE (name), 1); | 487 | STRING_MULTIBYTE (name), 1); |
| 488 | } | 488 | } |
| 489 | 489 | ||
| @@ -6518,7 +6518,7 @@ parse_solitary_modifier (Lisp_Object symbol) | |||
| 6518 | 6518 | ||
| 6519 | #define MULTI_LETTER_MOD(BIT, NAME, LEN) \ | 6519 | #define MULTI_LETTER_MOD(BIT, NAME, LEN) \ |
| 6520 | if (LEN == SBYTES (name) \ | 6520 | if (LEN == SBYTES (name) \ |
| 6521 | && ! strncmp (SDATA (name), NAME, LEN)) \ | 6521 | && ! strncmp (SSDATA (name), NAME, LEN)) \ |
| 6522 | return BIT; | 6522 | return BIT; |
| 6523 | 6523 | ||
| 6524 | case 'A': | 6524 | case 'A': |
| @@ -6949,7 +6949,7 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 6949 | NREAD is set to the number of chars read. */ | 6949 | NREAD is set to the number of chars read. */ |
| 6950 | do | 6950 | do |
| 6951 | { | 6951 | { |
| 6952 | nread = emacs_read (fileno (tty->input), cbuf, n_to_read); | 6952 | nread = emacs_read (fileno (tty->input), (char *) cbuf, n_to_read); |
| 6953 | /* POSIX infers that processes which are not in the session leader's | 6953 | /* POSIX infers that processes which are not in the session leader's |
| 6954 | process group won't get SIGHUP's at logout time. BSDI adheres to | 6954 | process group won't get SIGHUP's at logout time. BSDI adheres to |
| 6955 | this part standard and returns -1 from read (0) with errno==EIO | 6955 | this part standard and returns -1 from read (0) with errno==EIO |