[Lldb-commits] [PATCH] D51591: [PseudoTerminal] Use llvm errno helpers

Dávid Bolvanský via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 3 05:51:06 PDT 2018


xbolva00 created this revision.
xbolva00 added a reviewer: JDevlieghere.
Herald added subscribers: lldb-commits, abidh.

LLVM provide (str)errno helpers, so convert code to use it.

Also fixes warning:
/home/xbolva00/LLVM/llvm/tools/lldb/source/Host/common/PseudoTerminal.cpp:248:25: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]

  ::strerror_r(errno, error_str, error_len);


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D51591

Files:
  source/Host/common/PseudoTerminal.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51591.163701.patch
Type: text/x-patch
Size: 4850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180903/3587500b/attachment.bin>


More information about the lldb-commits mailing list