Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: net/base/nss_memio.c

Issue 22883002: Fix code formatting problems reported by PVS-Studio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/nss_memio.c
===================================================================
--- net/base/nss_memio.c (revision 215189)
+++ net/base/nss_memio.c (working copy)
@@ -149,7 +149,7 @@
mb->tail += len;
if (mb->tail == mb->bufsize)
mb->tail = 0;
- transferred += len;
+ transferred += len;
wtc 2013/08/12 17:11:42 Lines 145-152 are a copy of lines 133-142, except
}
}
@@ -177,11 +177,11 @@
/* 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;
wtc 2013/08/12 17:11:42 Similarly, lines 178-184 are a copy of lines 167-1
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698