X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..6bcfac5f53de9dff2f646da360b7da1a6e3aa7c1:/md5.c?ds=inline diff --git a/md5.c b/md5.c index 4707d63..5a0785d 100644 --- a/md5.c +++ b/md5.c @@ -17,6 +17,8 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id: md5.c,v 1.4 2004/05/27 22:02:05 noodles Exp $ */ /* Written by Ulrich Drepper , 1995. */ /* heavily modified for GnuPG by */ @@ -34,8 +36,8 @@ void md5_init( MD5_CONTEXT *ctx ) { ctx->A = 0x67452301; - ctx->B = 0xefcdab89; - ctx->C = 0x98badcfe; + ctx->B = 0xefcdab89U; + ctx->C = 0x98badcfeU; ctx->D = 0x10325476; ctx->nblocks = 0; @@ -262,12 +264,12 @@ void md5_final( MD5_CONTEXT *hd ) /*#define X(a) do { *(u32*)p = hd->##a ; p += 4; } while(0)*/ /* Unixware's cpp doesn't like the above construct so we do it his way: * (reported by Allan Clark) */ - #define X(a) do { *(unsigned int *)p = (*hd).a ; p += 4; } while(0) +#define X(a) do { *(unsigned int *)p = (*hd).a ; p += 4; } while(0) X(A); X(B); X(C); X(D); - #undef X +#undef X }