summaryrefslogtreecommitdiffstats
path: root/base/md5.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 23:08:02 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-26 23:08:02 +0000
commit2fdc86af6441d62cf6f3af049ac4cab1984d5323 (patch)
tree4a548a889f1c261676bdd4b6ccbca4255cea1c5e /base/md5.cc
parent7e7a62b46abc05baaa5e969fd64cff485857c1b6 (diff)
downloadchromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.zip
chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.tar.gz
chromium_src-2fdc86af6441d62cf6f3af049ac4cab1984d5323.tar.bz2
Style cleanup in preparation for auto-linting base/.
BUG=none TEST=none Review URL: http://codereview.chromium.org/552004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/md5.cc')
-rw-r--r--base/md5.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/md5.cc b/base/md5.cc
index f2e1c4a..f85cf43 100644
--- a/base/md5.cc
+++ b/base/md5.cc
@@ -33,7 +33,7 @@ struct Context {
/*
* Note: this code is harmless on little-endian machines.
*/
-static void byteReverse (unsigned char *buf, unsigned longs){
+static void byteReverse(unsigned char *buf, unsigned longs){
uint32 t;
do {
t = (uint32)((unsigned)buf[3]<<8 | buf[2]) << 16 |
@@ -175,7 +175,7 @@ void MD5Update(MD5Context *pCtx, const void *inbuf, size_t len){
/* Handle any leading odd-sized chunks */
- if ( t ) {
+ if (t) {
unsigned char *p = (unsigned char *)ctx->in + t;
t = 64-t;
@@ -257,7 +257,7 @@ std::string MD5DigestToBase16(const MD5Digest& digest){
ret.resize(32);
int j = 0;
- for(int i = 0; i < 16; i ++){
+ for (int i = 0; i < 16; i ++) {
int a = digest.a[i];
ret[j++] = zEncode[(a>>4)&0xf];
ret[j++] = zEncode[a & 0xf];