Use integers instead of NULL.

llvm-svn: 153941
This commit is contained in:
Bill Wendling 2012-04-03 07:50:11 +00:00
parent 542f2429f3
commit ed24dcc05f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);