[gmime] code cleanup



commit 31cd18ec0d4df9cde71b35f3b3b1d6ede9250718
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Tue Feb 7 16:00:01 2017 -0500

    code cleanup

 gmime/gmime-utils.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gmime/gmime-utils.c b/gmime/gmime-utils.c
index 0e553c6..a77e8b9 100644
--- a/gmime/gmime-utils.c
+++ b/gmime/gmime-utils.c
@@ -97,6 +97,14 @@
 #define DATE_TOKEN_NON_TIMEZONE_NUMERIC (1 << 6)
 #define DATE_TOKEN_HAS_SIGN             (1 << 7)
 
+static char base36[36] = {
+       '0', '1', '2', '3', '4', '5', '6', '7',
+       '8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
+       'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
+       'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
+       'W', 'X', 'Y', 'Z'
+};
+
 static unsigned char tohex[16] = {
        '0', '1', '2', '3', '4', '5', '6', '7',
        '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
@@ -789,7 +797,6 @@ g_mime_utils_header_decode_date (const char *str, int *tz_offset)
 char *
 g_mime_utils_generate_message_id (const char *fqdn)
 {
-       const char base36[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        static unsigned long int count = 0;
        const char *hostname = NULL;
        unsigned char block[8];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]