he -> hi
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "hiload/symbols.h"
|
||||
#include "symbols.h"
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <elf.h>
|
||||
@@ -14,13 +14,13 @@
|
||||
* Will clear and free the given SymbolInfo struct. Allocates enough memory to
|
||||
* hold found symbols.
|
||||
*/
|
||||
CreateResult he_create_symbol_info(SymbolInfos *symbols,
|
||||
CreateResult hi_create_symbol_info(SymbolInfos *symbols,
|
||||
struct dl_phdr_info *info) {
|
||||
|
||||
if (!symbols)
|
||||
return CREATE_FAILED;
|
||||
|
||||
he_free_symbol_info(symbols);
|
||||
hi_free_symbol_info(symbols);
|
||||
|
||||
for (int i = 0; i < info->dlpi_phnum; i++) {
|
||||
const ElfW(Phdr) *phdr = &info->dlpi_phdr[i];
|
||||
@@ -103,7 +103,7 @@ CreateResult he_create_symbol_info(SymbolInfos *symbols,
|
||||
return CREATE_SUCCESS;
|
||||
}
|
||||
|
||||
void he_free_symbol_info(SymbolInfos *symbols) {
|
||||
void hi_free_symbol_info(SymbolInfos *symbols) {
|
||||
for (size_t i = 0; i < symbols->count; i++) {
|
||||
free(symbols->names[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user