]> git.eshelyaron.com Git - emacs.git/commit
Remove redundant casts from void* with malloc functions
authorStefan Kangas <stefankangas@gmail.com>
Wed, 10 Jan 2024 07:18:22 +0000 (08:18 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Jan 2024 19:10:46 +0000 (20:10 +0100)
commit6090e5623e3e04dbbe6929024c038997accb6439
tree13c4981b104633a937e5133e2500cce103b3d2d4
parent25225fe84f1c2a9f33a5ad8912a80ad68fa1c6b8
Remove redundant casts from void* with malloc functions

* src/msdos.c (IT_menu_make_room):
* src/pgtkterm.c (pgtk_define_fringe_bitmap):
* src/w16select.c (set_clipboard_data):
* src/w32term.c (w32_define_fringe_bitmap):
* src/w32uniscribe.c (uniscribe_shape): Remove redundant cast from
void* with xrealloc.
* admin/coccinelle/alloc_cast.cocci: New semantic patch.

(cherry picked from commit 1a2fa8f413ffacc2490f4c46b3bbfc37b16fbd04)
admin/coccinelle/alloc_cast.cocci [new file with mode: 0644]
src/msdos.c
src/pgtkterm.c
src/w16select.c
src/w32term.c
src/w32uniscribe.c