X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgcrypt%2Fcipher.c;h=b9b32244b0d19d31beef339a1fe1b4610ad07927;hb=3a316823b971396a428f020f401b9fe41252d98d;hp=e9b32cf7f80fa887031c702c873879fc7c977717;hpb=70a1a5594af5d4e6a364186b42ba4e34c676009b;p=tinc diff --git a/src/gcrypt/cipher.c b/src/gcrypt/cipher.c index e9b32cf7..b9b32244 100644 --- a/src/gcrypt/cipher.c +++ b/src/gcrypt/cipher.c @@ -55,7 +55,7 @@ static struct { static bool nametocipher(const char *name, int *algo, int *mode) { size_t i; - for(i = 0; i < sizeof ciphertable / sizeof *ciphertable; i++) { + for(i = 0; i < sizeof(ciphertable) / sizeof *ciphertable; i++) { if(ciphertable[i].name && !strcasecmp(name, ciphertable[i].name)) { *algo = ciphertable[i].algo; *mode = ciphertable[i].mode; @@ -69,7 +69,7 @@ static bool nametocipher(const char *name, int *algo, int *mode) { static bool nidtocipher(int nid, int *algo, int *mode) { size_t i; - for(i = 0; i < sizeof ciphertable / sizeof *ciphertable; i++) { + for(i = 0; i < sizeof(ciphertable) / sizeof *ciphertable; i++) { if(nid == ciphertable[i].nid) { *algo = ciphertable[i].algo; *mode = ciphertable[i].mode; @@ -83,7 +83,7 @@ static bool nidtocipher(int nid, int *algo, int *mode) { static bool ciphertonid(int algo, int mode, int *nid) { size_t i; - for(i = 0; i < sizeof ciphertable / sizeof *ciphertable; i++) { + for(i = 0; i < sizeof(ciphertable) / sizeof *ciphertable; i++) { if(algo == ciphertable[i].algo && mode == ciphertable[i].mode) { *nid = ciphertable[i].nid; return true;