aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-02-06 21:47:56 -0800
committerPaul Eggert2011-02-06 21:47:56 -0800
commit3ce2f8ac4c06bf64c43e5ae138b903310927ac79 (patch)
treea839fe6c4ed04b3d94a5770d5eb6a418871e9b23 /src
parentefe0234f6a39ec077ed5c3b77779fec223636dba (diff)
downloademacs-3ce2f8ac4c06bf64c43e5ae138b903310927ac79.tar.gz
emacs-3ce2f8ac4c06bf64c43e5ae138b903310927ac79.zip
* ralloc.c: conform to C89 pointer rules
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/ralloc.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 386a9b3a0e5..b10f8fab1cc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -27,6 +27,7 @@
27 * doprnt.c (doprnt): Likewise. 27 * doprnt.c (doprnt): Likewise.
28 * indent.c (compute_motion): Likewise. 28 * indent.c (compute_motion): Likewise.
29 * xfont.c (xfont_decode_coding_xlfd): Likewise. 29 * xfont.c (xfont_decode_coding_xlfd): Likewise.
30 * ralloc.c (resize_bloc): Likewise.
30 * character.c (strwidth): Make its argument const char *, not const 31 * character.c (strwidth): Make its argument const char *, not const
31 unsigned char *, since more callers prefer it that way. All callers 32 unsigned char *, since more callers prefer it that way. All callers
32 changed. 33 changed.
diff --git a/src/ralloc.c b/src/ralloc.c
index ee8493b89a4..9c601a0ac24 100644
--- a/src/ralloc.c
+++ b/src/ralloc.c
@@ -648,7 +648,7 @@ resize_bloc (bloc_ptr bloc, SIZE size)
648 else 648 else
649 { 649 {
650 memmove (bloc->new_data, bloc->data, old_size); 650 memmove (bloc->new_data, bloc->data, old_size);
651 memset (bloc->new_data + old_size, 0, size - old_size); 651 memset ((char *) bloc->new_data + old_size, 0, size - old_size);
652 *bloc->variable = bloc->data = bloc->new_data; 652 *bloc->variable = bloc->data = bloc->new_data;
653 } 653 }
654 } 654 }
@@ -1259,4 +1259,3 @@ r_alloc_init (void)
1259 1259
1260 use_relocatable_buffers = 1; 1260 use_relocatable_buffers = 1;
1261} 1261}
1262