removed unused reference
cast return value of snprintf as size_t so it is the correct value for malloc argument
suppressed noreturn warning for main application loop
auto formatted code
Merge pull request #1 from dan-hill/prepare-old-code

Prepare old code