[vlc-commits] commit: ncurses: cleanup ( Rafaël Carré )

git at videolan.org git at videolan.org
Tue Oct 26 14:03:38 CEST 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Oct 25 23:38:12 2010 +0200| [b7b8876f91806e59f37e32f2c95b4d03ffc29219] | committer: Rafaël Carré 

ncurses: cleanup

remove unused intf_sys_t members
remove useless assignements
use C99 for(;;)
fix a double free when not using ncursesw
use sizeof instead of strlen() when possible
use var_GetInteger() instead of var_Get()
use calloc() to allocate intf_sys_t and remove assignements which set memory to 0

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7b8876f91806e59f37e32f2c95b4d03ffc29219
---

 modules/gui/ncurses.c |  302 ++++++++++++++++++++-----------------------------
 1 files changed, 121 insertions(+), 181 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=b7b8876f91806e59f37e32f2c95b4d03ffc29219


More information about the vlc-commits mailing list