Remove "magic" constant.
Update the commentary.
Shorten a line, remove unneeded type casts from void *.