am ad6bd043: am f298f6be: Merge "Use errno correctly."

* commit 'ad6bd0438745aeb9a4484448e4392dc23ea3b351':
  Use errno correctly.