9de68637df
g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer,
for two reasons. One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.
This commit only touches allocations with size arguments of the form
sizeof(T). Same Coccinelle semantic patch as in commit
|
||
---|---|---|
.. | ||
ads7846.c | ||
blizzard.c | ||
blizzard_template.h | ||
cg3.c | ||
cirrus_vga.c | ||
cirrus_vga_rop.h | ||
cirrus_vga_rop2.h | ||
exynos4210_fimd.c | ||
framebuffer.c | ||
framebuffer.h | ||
g364fb.c | ||
jazz_led.c | ||
Makefile.objs | ||
milkymist-tmu2.c | ||
milkymist-vgafb.c | ||
milkymist-vgafb_template.h | ||
omap_dss.c | ||
omap_lcd_template.h | ||
omap_lcdc.c | ||
pl110.c | ||
pl110_template.h | ||
pxa2xx_lcd.c | ||
pxa2xx_template.h | ||
qxl-logger.c | ||
qxl-render.c | ||
qxl.c | ||
qxl.h | ||
sm501.c | ||
sm501_template.h | ||
ssd0303.c | ||
ssd0323.c | ||
tc6393xb.c | ||
tc6393xb_template.h | ||
tcx.c | ||
vga-helpers.h | ||
vga-isa-mm.c | ||
vga-isa.c | ||
vga-pci.c | ||
vga.c | ||
vga.h | ||
vga_int.h | ||
virtio-gpu-3d.c | ||
virtio-gpu-pci.c | ||
virtio-gpu.c | ||
virtio-vga.c | ||
vmware_vga.c | ||
xenfb.c |