Skip to content

Commit

Permalink
Remove a function that won't be used (zoogie#11)
Browse files Browse the repository at this point in the history
This also fixes Linux support
  • Loading branch information
Mike15678 authored and zoogie committed Jul 24, 2018
1 parent cada026 commit 69b0fa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
25 changes: 1 addition & 24 deletions utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,27 +195,4 @@ void intHandler() {
// Not really needed for now.
stop_bfcl = 1;
exit(0);
}

void deprecation_notice_and_input() {
char response[2];
// NO BUFFER OVERFLOWS CAN HAPPEN HERE!!! >:(
printf("\nWARNING: Deprecated parameters are being used (most likely due to using an outdated Seedminer Python script)!\nIf problems occur and you are using Seedminer, download an updated Python script.\nWould you like to continue? Enter Y or N: ");
fflush(stdout);
// As long as your response starts with a "y" or an "n", it'll be accepted and the rest will be truncated.
fgets(response, sizeof(response), stdin);
fflush(stdin);
while (1) {
real_sleep(1);
if (!strcmp(response, "Y") || !strcmp(response, "y")) {
break;
} else if (!strcmp(response, "N") || !strcmp(response, "n")) {
exit(0);
} else {
printf("\nInvalid choice chosen!\nWould you like to continue with the mining? Enter Y or N: ");
fflush(stdout);
fgets(response, sizeof(response), stdin);
fflush(stdin);
}
}
}
}
4 changes: 1 addition & 3 deletions utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,4 @@ uint32_t reduced_work_size_mode;

void real_sleep(int sleep_sec);

void intHandler();

void deprecation_notice_and_input();
void intHandler();

0 comments on commit 69b0fa2

Please sign in to comment.