mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-24 15:22:26 -07:00
* ralloc.c: conform to C89 pointer rules
This commit is contained in:
parent
efe0234f6a
commit
3ce2f8ac4c
2 changed files with 2 additions and 2 deletions
|
|
@ -27,6 +27,7 @@
|
|||
* doprnt.c (doprnt): Likewise.
|
||||
* indent.c (compute_motion): Likewise.
|
||||
* xfont.c (xfont_decode_coding_xlfd): Likewise.
|
||||
* ralloc.c (resize_bloc): Likewise.
|
||||
* character.c (strwidth): Make its argument const char *, not const
|
||||
unsigned char *, since more callers prefer it that way. All callers
|
||||
changed.
|
||||
|
|
|
|||
|
|
@ -648,7 +648,7 @@ resize_bloc (bloc_ptr bloc, SIZE size)
|
|||
else
|
||||
{
|
||||
memmove (bloc->new_data, bloc->data, old_size);
|
||||
memset (bloc->new_data + old_size, 0, size - old_size);
|
||||
memset ((char *) bloc->new_data + old_size, 0, size - old_size);
|
||||
*bloc->variable = bloc->data = bloc->new_data;
|
||||
}
|
||||
}
|
||||
|
|
@ -1259,4 +1259,3 @@ r_alloc_init (void)
|
|||
|
||||
use_relocatable_buffers = 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue