code cleanup: We prefer 'CURLcode result'