Lint for trailing spaces
This commit is contained in:
parent
63047fc2ff
commit
8c66266e99
|
@ -227,7 +227,6 @@ static char* regname(uint8_t reg) {
|
|||
}
|
||||
|
||||
#define REG(n) (regname(OP(n).reg))
|
||||
|
||||
void bpf_alu(RAnal *a, RAnalOp *op, cs_insn *insn, const char* operation, int bits) {
|
||||
if (OPCOUNT == 2 && a->config->bits == 64) { // eBPF
|
||||
if (bits == 64) {
|
||||
|
@ -525,7 +524,6 @@ void analop_esil(RAnal *a, RAnalOp *op, cs_insn *insn, ut64 addr) {
|
|||
case BPF_INS_LDXDW: ///< eBPF only
|
||||
LOAD ("a", 8); // reg never used here
|
||||
break;
|
||||
|
||||
///< Store
|
||||
case BPF_INS_STW: ///< eBPF only
|
||||
STORE ("a", 4);
|
||||
|
|
|
@ -557,7 +557,6 @@ static int v850_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *buf, int len,
|
|||
op->fail = addr + inst.size;
|
||||
break;
|
||||
case R_ANAL_OP_TYPE_POP:
|
||||
// if (inst.op->memop == 3) {
|
||||
if (inst.op && strstr (inst.op->esil, "#2")) {
|
||||
op->type = R_ANAL_OP_TYPE_RET;
|
||||
}
|
||||
|
|
|
@ -196,7 +196,6 @@ static struct cEnv_t* r_egg_cfile_set_cEnv(const char *arch, const char *os, int
|
|||
free (cEnv->LDFLAGS);
|
||||
cEnv->LDFLAGS = strdup (buffer);
|
||||
}
|
||||
|
||||
if (r_egg_cfile_check_cEnv (cEnv)) {
|
||||
R_LOG_ERROR ("invalid cEnv allocation");
|
||||
goto fail;
|
||||
|
|
|
@ -100,7 +100,7 @@ typedef struct r_print_t {
|
|||
bool scr_prompt;
|
||||
int (*disasm)(void *p, ut64 addr);
|
||||
PrintfCallback oprintf;
|
||||
RArchConfig *config; //
|
||||
RArchConfig *config;
|
||||
int width;
|
||||
int limit;
|
||||
bool histblock;
|
||||
|
|
|
@ -268,7 +268,7 @@ static bool ihex_parse(RBuffer *rbuf, char *str) {
|
|||
}
|
||||
cksum += byte;
|
||||
}
|
||||
if (1) { // ||
|
||||
if (1) {
|
||||
//bool is_seq = (next_addr != addr_tmp) || ((sec_size + bc) > SEC_MAX);
|
||||
//previous block is not contiguous, or
|
||||
//section buffer is full => write a sparse chunk
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
(git grep -n 'eprintf' libr | grep 'Error:') && exit 1
|
||||
(git grep -n 'x ""' libr) && exit 1
|
||||
(git grep -n 'x""' libr) && exit 1
|
||||
(git grep -n '\ $' libr) && exit 1 # trailing space
|
||||
(git grep -n '4d""' libr) && exit 1
|
||||
(git grep -n 'r_core_cmd' libr | grep -v /lang/ | grep '\\n') && exit 1
|
||||
(git grep -n 'r_str_startswith ("' libr ) && exit 1
|
||||
|
|
Loading…
Reference in New Issue