Mercurial > masqmail
diff src/md5/hmactest.c @ 366:41958685480d
Switched to `type *name' style
Andrew Koenig's ``C Traps and Pitfalls'' (Ch.2.1) convinced
me that it is best to go with the way C had been designed.
The ``declaration reflects use'' concept conflicts with a
``type* name'' notation. Hence I switched.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 22 Sep 2011 15:07:40 +0200 |
parents | 38f86ae6171b |
children | b27f66555ba8 |
line wrap: on
line diff
--- a/src/md5/hmactest.c Wed Sep 14 12:20:40 2011 +0200 +++ b/src/md5/hmactest.c Thu Sep 22 15:07:40 2011 +0200 @@ -62,7 +62,7 @@ puts("---- Following are the test vectors from RFC 2104"); - char* d01 = "Hi There"; + char *d01 = "Hi There"; char k01[16]; for (i=0; i<16; i++) { k01[i] = 0x0b; @@ -75,8 +75,8 @@ printf(" (was computed)\n\n"); - char* d02 = "what do ya want for nothing?"; - char* k02 = "Jefe"; + char *d02 = "what do ya want for nothing?"; + char *k02 = "Jefe"; printf("750c783e6ab0b503eaa86e310a5db738 (should be)\n"); hmac_md5(d02, strlen(d02), k02, strlen(k02), digest); for (i = 0; i < 16; i++) {