changeset 1274:9da3e7b4fe55

add parentheses to macro
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 09:40:24 +0100
parents 139935236c72
children d49bda490798
files auth.h dbrandom.c rsa.h
diffstat 3 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/auth.h	Fri Jan 01 09:20:50 2016 +0100
+++ b/auth.h	Fri Jan 01 09:40:24 2016 +0100
@@ -81,9 +81,9 @@
 #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
--- a/dbrandom.c	Fri Jan 01 09:20:50 2016 +0100
+++ b/dbrandom.c	Fri Jan 01 09:40:24 2016 +0100
@@ -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;
--- a/rsa.h	Fri Jan 01 09:20:50 2016 +0100
+++ b/rsa.h	Fri Jan 01 09:40:24 2016 +0100
@@ -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 {