# HG changeset patch # User Francois Perrad # Date 1451637624 -3600 # Node ID 9da3e7b4fe55ed946b4228f4ac5eb94bd1fcdecc # Parent 139935236c72ded48e28cf18a91d29907fe614d0 add parentheses to macro diff -r 139935236c72 -r 9da3e7b4fe55 auth.h --- 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 diff -r 139935236c72 -r 9da3e7b4fe55 dbrandom.c --- 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; diff -r 139935236c72 -r 9da3e7b4fe55 rsa.h --- 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 {