forked from OSchip/llvm-project
[sanitizer] Fix argument type and remove unneeded vector resize
llvm-svn: 331927
This commit is contained in:
parent
6d26638c90
commit
cf50425b77
|
@ -905,8 +905,7 @@ bool internal_sigismember(__sanitizer_sigset_t *set, int signum) {
|
|||
#endif // !SANITIZER_SOLARIS
|
||||
|
||||
// ThreadLister implementation.
|
||||
ThreadLister::ThreadLister(int pid) : pid_(pid), buffer_(4096) {
|
||||
buffer_.resize(buffer_.capacity());
|
||||
ThreadLister::ThreadLister(pid_t pid) : pid_(pid), buffer_(4096) {
|
||||
char task_directory_path[80];
|
||||
internal_snprintf(task_directory_path, sizeof(task_directory_path),
|
||||
"/proc/%d/task/", pid);
|
||||
|
|
Loading…
Reference in New Issue