From b9096f2392b61767b754dfe8e6db421466d7a665 Mon Sep 17 00:00:00 2001 From: XMRig Date: Fri, 5 Oct 2018 16:01:22 +0300 Subject: [PATCH] Disable donation. --- donate.h | 2 +- options.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/donate.h b/donate.h index 4fc607872..fec60439a 100644 --- a/donate.h +++ b/donate.h @@ -24,6 +24,6 @@ #ifndef __DONATE_H__ #define __DONATE_H__ -#define DONATE_LEVEL 5 +#define DONATE_LEVEL 0 #endif /* __DONATE_H__ */ diff --git a/options.c b/options.c index f276b3f13..8fe9bff81 100644 --- a/options.c +++ b/options.c @@ -370,12 +370,12 @@ static void parse_arg(int key, char *arg) { break; case 1003: /* --donate-level */ - v = atoi(arg); - if (v < 1 || v > 99) { - show_usage_and_exit(1); - } +// v = atoi(arg); +// if (v < 1 || v > 99) { +// show_usage_and_exit(1); +// } - opt_donate_level = v; +// opt_donate_level = v; break; case 1021: /* --variant */