Build fixes for TE plugin

This commit is contained in:
Anton Kochkov 2013-03-03 03:33:05 +04:00
parent 5a895cf2b1
commit 8fd68f1429
2 changed files with 3 additions and 6 deletions

View File

@ -343,7 +343,7 @@ struct r_bin_te_export_t* r_bin_te_get_exports(struct r_bin_te_obj_t* bin) {
return NULL;
}
struct r_bin_te_import_t* r_bin_pe_get_imports(struct r_bin_te_obj_t *bin) {
struct r_bin_te_import_t* r_bin_te_get_imports(struct r_bin_te_obj_t *bin) {
return NULL;
}
@ -374,7 +374,7 @@ struct r_bin_te_obj_t* r_bin_te_new(const char* file) {
return bin;
}
struct r_bin_te_obj_t* r_bin_pe_new_buf(struct r_buf_t *buf) {
struct r_bin_te_obj_t* r_bin_te_new_buf(struct r_buf_t *buf) {
struct r_bin_te_obj_t *bin = R_NEW0 (struct r_bin_te_obj_t);
if (!bin) return NULL;
bin->b = buf;

View File

@ -150,10 +150,7 @@ static RBinInfo* info(RBinArch *arch) {
if (!ret) return NULL;
strncpy (ret->file, arch->file, R_BIN_SIZEOF_STRINGS);
strncpy (ret->rpath, "NONE", R_BIN_SIZEOF_STRINGS);
if ((str = r_bin_te_get_class (arch->bin_obj))) {
strncpy (ret->bclass, str, R_BIN_SIZEOF_STRINGS);
free (str);
}
strncpy (ret->bclass, "TE", R_BIN_SIZEOF_STRINGS);
strncpy (ret->rclass, "te", R_BIN_SIZEOF_STRINGS);
if ((str = r_bin_te_get_os (arch->bin_obj))) {
strncpy (ret->os, str, R_BIN_SIZEOF_STRINGS);