aboutsummaryrefslogtreecommitdiff
path: root/miner.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-11-26 15:46:11 -0500
committerJeff Garzik <jgarzik@redhat.com>2010-11-26 15:46:11 -0500
commitb7cc9b68ad0df14e976fa02e5eaa51149aac2414 (patch)
tree0b3414edda357534a157fc51180a4467d3b8b7a2 /miner.h
parent59f1fb2ec87b4a8e3d6608b405b6aa649b89db95 (diff)
Replace argp with getopt_long
Diffstat (limited to 'miner.h')
-rw-r--r--miner.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/miner.h b/miner.h
index 1e5af4f..dc84c1c 100644
--- a/miner.h
+++ b/miner.h
@@ -4,6 +4,10 @@
#include <stdbool.h>
#include <jansson.h>
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+#endif
+
extern bool opt_protocol;
extern json_t *json_rpc_call(const char *url, const char *userpass,
const char *rpc_req);