summaryrefslogtreecommitdiff
path: root/daemon/digest.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2011-03-04 12:44:44 +0100
committerStef Walter <stef@thewalter.net>2011-03-04 12:44:44 +0100
commit5f35f7bae798625ec6493b174fe1ae54c91d55ae (patch)
tree0cdc391e8309f8c22ad19dbd0476b3a1e26239e9 /daemon/digest.c
parent0763cc75c4e81c55cb240bc7795465d432f5daab (diff)
A better fix for the 64-bit packing issues
Diffstat (limited to 'daemon/digest.c')
-rw-r--r--daemon/digest.c7
1 files 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)
{