Fix build for no libcurl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
diff --git a/cgminer.c b/cgminer.c
index b5199ff..6864c50 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2700,25 +2700,6 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work,
}
}
-#ifdef HAVE_LIBCURL
-static void text_print_status(int thr_id)
-{
- struct cgpu_info *cgpu;
- char logline[256];
-
- cgpu = get_thr_cgpu(thr_id);
- if (cgpu) {
- get_statline(logline, sizeof(logline), cgpu);
- printf("%s\n", logline);
- }
-}
-
-static void print_status(int thr_id)
-{
- if (!curses_active)
- text_print_status(thr_id);
-}
-
static void show_hash(struct work *work, char *hashshow)
{
unsigned char rhash[32];
@@ -2740,6 +2721,25 @@ static void show_hash(struct work *work, char *hashshow)
work->block? " BLOCK!" : "");
}
+#ifdef HAVE_LIBCURL
+static void text_print_status(int thr_id)
+{
+ struct cgpu_info *cgpu;
+ char logline[256];
+
+ cgpu = get_thr_cgpu(thr_id);
+ if (cgpu) {
+ get_statline(logline, sizeof(logline), cgpu);
+ printf("%s\n", logline);
+ }
+}
+
+static void print_status(int thr_id)
+{
+ if (!curses_active)
+ text_print_status(thr_id);
+}
+
static bool submit_upstream_work(struct work *work, CURL *curl, bool resubmit)
{
char *hexstr = NULL;