Eliminate warnings detected by Cppcheck in cord de[_win]
authorIvan Maidanski <ivmai@mail.ru>
Sat, 14 Jun 2014 16:30:42 +0000 (20:30 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 14 Jun 2014 16:30:42 +0000 (20:30 +0400)
commit998500eb0cc051694ddaffd9a37dc7d108783d74
tree601111bf6edc8aef99cc4bb271f170ac51ec2ab8
parent813a99e4f646a14c640eb08de7bf40f44235fc94
Eliminate warnings detected by Cppcheck in cord de[_win]

* cord/tests/de.c (prune_map): Remove redundant first check of map for
NULL (as "map" variable has already been dereferenced at the point of
the check).
* cord/tests/de.c (replace_line): Do not define "len" local variable
if not used; eliminate duplicate CORD_len(s) call.
* cord/tests/de_win.c (WndProc): Cast char_width and char_height
global variables to unsigned int in division of unsigned xpos, ypos
local variables.
cord/tests/de.c
cord/tests/de_win.c