Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3ce2f8ac
Commit
3ce2f8ac
authored
Feb 06, 2011
by
Paul Eggert
Browse files
* ralloc.c: conform to C89 pointer rules
parent
efe0234f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/ChangeLog
src/ChangeLog
+1
-0
src/ralloc.c
src/ralloc.c
+1
-2
No files found.
src/ChangeLog
View file @
3ce2f8ac
...
...
@@ -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.
src/ralloc.c
View file @
3ce2f8ac
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment