Skip to content

Commit

Permalink
Fix variable 'err' usage and compilation
Browse files Browse the repository at this point in the history
Fix compilation and correct usage of the err variable:

nmreplay.c:1105:13: error: variable 'err' set but not used [-Werror,-Wunused-but-set-variable]
        int ch, i, err=0;
  • Loading branch information
ocochard authored Feb 15, 2022
1 parent 278045b commit ae7ee74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nmreplay/nmreplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ main(int argc, char **argv)
D("exiting on abort");
sleep(1);

return (0);
return (err);
}

/* conversion factor for numbers.
Expand Down

0 comments on commit ae7ee74

Please sign in to comment.