Skip to content

Commit

Permalink
select: one more -Wunused-result missing
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Apr 6, 2024
1 parent a8dd4e5 commit ee13fd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/selectAlgo.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,13 @@ int main(int argc, const char *argv[]) {
par++;
if (file_exists("algorithms.lst.bak")) {
// restore from numbered backups
system("mv -f algorithms.lst.bak algorithms.lst");
int ret = system("mv -f algorithms.lst.bak algorithms.lst");
if (ret)
fprintf(stderr, "mv failed %d\n", ret);
if (file_exists("algorithms.lst.bak.~1~")) {
char next[80];
int i = 2;
int ret = system("mv -f algorithms.lst.bak.~1~ algorithms.lst.bak");
ret = system("mv -f algorithms.lst.bak.~1~ algorithms.lst.bak");
if (ret)
fprintf(stderr, "mv failed %d\n", ret);
do {
Expand Down

0 comments on commit ee13fd7

Please sign in to comment.