skin_parser: simplify skin_buffer_alloc
commit675f171cf15518387146221e026faeef8c31a778
authorRafaël Carré <funman@videolan.org>
Mon, 7 May 2012 02:40:06 +0000 (6 22:40 -0400)
committerRafaël Carré <funman@videolan.org>
Mon, 7 May 2012 02:43:21 +0000 (6 22:43 -0400)
tree7cc4e9b2fcb7a0fc2c964b1cdaca57dd8d36b110
parent6fd4780ac42fef53afd18ff92c39ddc6ad2f4f7b
skin_parser: simplify skin_buffer_alloc

- no need to cast void * return value (it is not C++)
- use sizeof(*var) instead of sizeof(struct foobar), it is shorter and will
  stay correct if the type is changed but forgotten in the sizeof()
apps/gui/skin_engine/skin_parser.c