From 6d4b2b8b6f4b5b1e3f056e29ea58e9d948848909 Mon Sep 17 00:00:00 2001 From: upstream svn Date: Wed, 3 Mar 2010 20:34:38 +0000 Subject: [PATCH] Upstream tarball 10035 --- .svn-revision | 2 +- src/libs/common/MD5Sum.cpp | 2 +- src/libs/ec/cpp/ECSocket.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.svn-revision b/.svn-revision index 84fb28fa..af0d566a 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -10034 +10035 diff --git a/src/libs/common/MD5Sum.cpp b/src/libs/common/MD5Sum.cpp index 90a67ad0..1574897b 100644 --- a/src/libs/common/MD5Sum.cpp +++ b/src/libs/common/MD5Sum.cpp @@ -104,7 +104,7 @@ static void MD5Transform (uint32_t [4], const unsigned char [64]); static void Encode (unsigned char *, uint32_t *, size_t); static void Decode (uint32_t *, const unsigned char *, size_t); -static unsigned char PADDING[64] = { +static const unsigned char PADDING[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 diff --git a/src/libs/ec/cpp/ECSocket.cpp b/src/libs/ec/cpp/ECSocket.cpp index eb5da3b0..d02f3840 100644 --- a/src/libs/ec/cpp/ECSocket.cpp +++ b/src/libs/ec/cpp/ECSocket.cpp @@ -62,7 +62,7 @@ struct utf8_table { uint32_t lval; }; -static struct utf8_table utf8_table[] = +static const struct utf8_table utf8_table[] = { {0x80, 0x00, 0*6, 0x7F, 0, /* 1 byte sequence */}, {0xE0, 0xC0, 1*6, 0x7FF, 0x80, /* 2 byte sequence */}, @@ -77,7 +77,7 @@ int utf8_mbtowc(uint32_t *p, const unsigned char *s, int n) { uint32_t l; int c0, c, nc; - struct utf8_table *t; + const struct utf8_table *t; nc = 0; c0 = *s; @@ -106,7 +106,7 @@ int utf8_wctomb(unsigned char *s, uint32_t wc, int maxlen) { uint32_t l; int c, nc; - struct utf8_table *t; + const struct utf8_table *t; l = wc; nc = 0; -- 2.11.4.GIT