comparison src/xs_support.c @ 1009:0cd6bcc9ef80

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 05 May 2014 23:00:51 +0300
parents 0233c5fd7d5e
children
comparison
equal deleted inserted replaced
1008:fef02cb10652 1009:0cd6bcc9ef80
223 #if G_BYTE_ORDER == G_LITTLE_ENDIAN 223 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
224 # define xs_md5_bytereverse(buf, len) /* Nothing */ 224 # define xs_md5_bytereverse(buf, len) /* Nothing */
225 #elif G_BYTE_ORDER == G_BIG_ENDIAN 225 #elif G_BYTE_ORDER == G_BIG_ENDIAN
226 static void xs_md5_bytereverse(guint8 *buf, guint l) 226 static void xs_md5_bytereverse(guint8 *buf, guint l)
227 { 227 {
228 guint32 t;
229 do 228 do
230 { 229 {
231 t = (guint32) ((guint) buf[3] << 8 | buf[2]) << 16 | ((guint) buf[1] << 8 | buf[0]); 230 guint32 t = (guint32) ((guint32) buf[3] << 8 | buf[2]) << 16 | ((guint32) buf[1] << 8 | buf[0]);
232 *(guint32 *) buf = t; 231 *(guint32 *) buf = t;
233 buf += sizeof(guint32); 232 buf += sizeof(guint32);
234 } while (--l); 233 } while (--l);
235 } 234 }
236 #else 235 #else