summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2016-01-01 09:40:24 +0100
committerMatt Johnston <matt@ucc.asn.au>2016-03-16 22:41:19 +0800
commitedea73b1f8d517ca3d41caa0ba7632f95e5c8272 (patch)
treeebc283afff6913f6ecf5407a98c742190447b3ba
parent893d7be5bfaa0764b2a152a208b0b14b6e3d26d9 (diff)
add parentheses to macro
-rw-r--r--auth.h6
-rw-r--r--dbrandom.c2
-rw-r--r--rsa.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/auth.h b/auth.h
index 250a7f7..77778f4 100644
--- a/auth.h
+++ b/auth.h
@@ -81,9 +81,9 @@ void cli_auth_pubkey_cleanup();
#define MAX_USERNAME_LEN 25 /* arbitrary for the moment */
#define AUTH_TYPE_NONE 1
-#define AUTH_TYPE_PUBKEY 1 << 1
-#define AUTH_TYPE_PASSWORD 1 << 2
-#define AUTH_TYPE_INTERACT 1 << 3
+#define AUTH_TYPE_PUBKEY (1 << 1)
+#define AUTH_TYPE_PASSWORD (1 << 2)
+#define AUTH_TYPE_INTERACT (1 << 3)
#define AUTH_METHOD_NONE "none"
#define AUTH_METHOD_NONE_LEN 4
diff --git a/dbrandom.c b/dbrandom.c
index 02e7803..239b044 100644
--- a/dbrandom.c
+++ b/dbrandom.c
@@ -32,7 +32,7 @@
/* this is used to generate unique output from the same hashpool */
static uint32_t counter = 0;
/* the max value for the counter, so it won't integer overflow */
-#define MAX_COUNTER 1<<30
+#define MAX_COUNTER (1<<30)
static unsigned char hashpool[SHA1_HASH_SIZE] = {0};
static int donerandinit = 0;
diff --git a/rsa.h b/rsa.h
index 800be59..94bde5c 100644
--- a/rsa.h
+++ b/rsa.h
@@ -30,7 +30,7 @@
#ifdef DROPBEAR_RSA
-#define RSA_SIGNATURE_SIZE 4+7+4+40
+#define RSA_SIGNATURE_SIZE (4+7+4+40)
typedef struct {