Commit d96dfd61 authored by wtc@chromium.org's avatar wtc@chromium.org

Fix code formatting problems reported by PVS-Studio.

See http://www.viva64.com/en/b/0205/#ID0EXRFM

R=rsleevi@chromium.org
BUG=271530
TEST=none

Review URL: https://chromiumcodereview.appspot.com/22883002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217131 0039d316-1c4b-4281-b951-d872f2087c98
parent 99e0618b
......@@ -149,7 +149,7 @@ static int memio_buffer_put(struct memio_buffer *mb, const char *buf, int n)
mb->tail += len;
if (mb->tail == mb->bufsize)
mb->tail = 0;
transferred += len;
transferred += len;
}
}
......@@ -177,11 +177,11 @@ static int memio_buffer_get(struct memio_buffer *mb, char *buf, int n)
/* Handle part after wrap */
len = PR_MIN(n, memio_buffer_used_contiguous(mb));
if (len) {
memcpy(buf, &mb->buf[mb->head], len);
mb->head += len;
memcpy(buf, &mb->buf[mb->head], len);
mb->head += len;
if (mb->head == mb->bufsize)
mb->head = 0;
transferred += len;
transferred += len;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment