mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
Use integers instead of NULL.
llvm-svn: 153941
This commit is contained in:
@@ -861,15 +861,15 @@ ObjectFileELF::ParseDynamicSymbols()
|
||||
|
||||
user_id_t dyn_id = GetSectionIndexByType(SHT_DYNAMIC);
|
||||
if (!dyn_id)
|
||||
return NULL;
|
||||
return 0;
|
||||
|
||||
SectionList *section_list = GetSectionList();
|
||||
if (!section_list)
|
||||
return NULL;
|
||||
return 0;
|
||||
|
||||
Section *dynsym = section_list->FindSectionByID(dyn_id).get();
|
||||
if (!dynsym)
|
||||
return NULL;
|
||||
return 0;
|
||||
|
||||
ELFDynamic symbol;
|
||||
DataExtractor dynsym_data;
|
||||
|
||||
@@ -516,7 +516,7 @@ AcceptPortFromInferior (void *arg)
|
||||
char pid_str[256];
|
||||
::memset (pid_str, 0, sizeof(pid_str));
|
||||
ConnectionStatus status;
|
||||
const size_t pid_str_len = file_conn.Read (pid_str, sizeof(pid_str), NULL, status, NULL);
|
||||
const size_t pid_str_len = file_conn.Read (pid_str, sizeof(pid_str), 0, status, NULL);
|
||||
if (pid_str_len > 0)
|
||||
{
|
||||
int pid = atoi (pid_str);
|
||||
|
||||
Reference in New Issue
Block a user