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

Unified Diff: third_party/sqlite/src/tool/showjournal.c

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « third_party/sqlite/src/tool/showdb.c ('k') | third_party/sqlite/src/tool/showlocks.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/tool/showjournal.c
diff --git a/third_party/sqlite/src/tool/showjournal.c b/third_party/sqlite/src/tool/showjournal.c
index 19220f5196af37b939c4c92f40574f28aa162f70..51c89da499bc9b53a6b75785677a58ecd3169d02 100644
--- a/third_party/sqlite/src/tool/showjournal.c
+++ b/third_party/sqlite/src/tool/showjournal.c
@@ -30,7 +30,7 @@ static unsigned char *read_content(int N, int iOfst){
unsigned char *pBuf = malloc(N);
if( pBuf==0 ) out_of_memory();
fseek(db, iOfst, SEEK_SET);
- got = fread(pBuf, 1, N, db);
+ got = (int)fread(pBuf, 1, N, db);
if( got<0 ){
fprintf(stderr, "I/O error reading %d bytes from %d\n", N, iOfst);
memset(pBuf, 0, N);
@@ -53,7 +53,7 @@ static unsigned print_decode_line(
unsigned val = aData[ofst];
char zBuf[100];
sprintf(zBuf, " %05x: %02x", ofst, aData[ofst]);
- i = strlen(zBuf);
+ i = (int)strlen(zBuf);
for(j=1; j<4; j++){
if( j>=nByte ){
sprintf(&zBuf[i], " ");
@@ -61,7 +61,7 @@ static unsigned print_decode_line(
sprintf(&zBuf[i], " %02x", aData[ofst+j]);
val = val*256 + aData[ofst+j];
}
- i += strlen(&zBuf[i]);
+ i += (int)strlen(&zBuf[i]);
}
sprintf(&zBuf[i], " %10u", val);
printf("%s %s\n", zBuf, zMsg);
« no previous file with comments | « third_party/sqlite/src/tool/showdb.c ('k') | third_party/sqlite/src/tool/showlocks.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698