replace 'result' with 'errno' field.
clear .bak files.
Merge pull request #2 from michaelfung/master

replace 'result' field with 'errno'