Skip to content

Commit

Permalink
avoid comparing < 0 for enum, instead go with == -1
Browse files Browse the repository at this point in the history
  • Loading branch information
droundy committed May 24, 2016
1 parent 7b35f1f commit 56bcd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bigbro-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static int save_syscall_access(pid_t child, rw_status *h) {
long (*get_syscall_arg)(void *regs, int which) = 0;

enum syscall sc = get_registers(child, &regs, &get_syscall_arg);
if (sc < 0) {
if (sc == -1) {
/* we can't read the registers right, but let's not give up! */
debugprintf("%d: Unable to read registers?!\n", child);
return 0;
Expand Down

0 comments on commit 56bcd90

Please sign in to comment.