Skip to content

Commit

Permalink
minor fixes, renaming function names
Browse files Browse the repository at this point in the history
Signed-off-by: Ashis Kumar Naik <[email protected]>
  • Loading branch information
ashiskumarnaik committed Mar 22, 2024
1 parent 22ca303 commit aa90791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions librz/arch/isa/h8300/h8300_il.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,5 @@ RZ_IPI bool rz_h8300_il_opcode(RzAnalysis *analysis, RzAnalysisOp *op, ut64 pc,
RZ_IPI RzAnalysisILConfig *rz_h8300_il_config(RZ_NONNULL RzAnalysis *analysis) {
rz_return_val_if_fail(analysis, NULL);

RzAnalysisILConfig *cfg = rz_analysis_il_config_new(H8300_ADDR_SIZE, analysis->big_endian, H8300_ADDR_SIZE);
return cfg;
return rz_analysis_il_config_new(H8300_ADDR_SIZE, analysis->big_endian, H8300_ADDR_SIZE);
}
4 changes: 2 additions & 2 deletions librz/arch/p/analysis/analysis_h8300.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ static char *get_reg_profile(RzAnalysis *analysis) {
return strdup(p);
}

static int archinfo(RzAnalysis *a, RzAnalysisInfoType query) {
static int h8300_archinfo(RzAnalysis *a, RzAnalysisInfoType query) {
switch (query) {
case RZ_ANALYSIS_ARCHINFO_MIN_OP_SIZE:
/* fall-thru */
Expand All @@ -748,7 +748,7 @@ RzAnalysisPlugin rz_analysis_plugin_h8300 = {
.desc = "H8300 code analysis plugin",
.license = "LGPL3",
.arch = "h8300",
.archinfo = archinfo,
.archinfo = h8300_archinfo,
.bits = 16,
.op = &h8300_op,
.esil = true,
Expand Down

0 comments on commit aa90791

Please sign in to comment.