From 5f35f7bae798625ec6493b174fe1ae54c91d55ae Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 4 Mar 2011 12:44:44 +0100 Subject: A better fix for the 64-bit packing issues --- daemon/digest.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon/digest.c b/daemon/digest.c index 2a5843e..6ed08a3 100644 --- a/daemon/digest.c +++ b/daemon/digest.c @@ -39,13 +39,14 @@ static const char* g_http_methods[] = { "GET", "HEAD", "POST", "PUT", "DELETE", "TRACE", "CONNECT", NULL }; -typedef struct internal_nonce +struct internal_nonce { unsigned char hash[MD5_LEN]; time_t tm; unsigned int unique; -} -internal_nonce_t __attribute__((packed)); +} __attribute__((__packed__)); + +typedef struct internal_nonce internal_nonce_t; void digest_makenonce(unsigned char* nonce, unsigned char* secret, unsigned char* old) { -- cgit v1.2.3