Fossil SCM

Fix gcc warning: pointer targets in initialization differ in signedness

jan.nijtmans 2014-08-15 07:31 trunk
Commit 25d6a5f2b39666b8ed2594f73a356b3d1c2b1d6e
1 file changed +1 -1
+1 -1
--- src/cache.c
+++ src/cache.c
@@ -346,11 +346,11 @@
346346
" ORDER BY tm DESC"
347347
);
348348
if( pStmt ){
349349
@ <ol>
350350
while( sqlite3_step(pStmt)==SQLITE_ROW ){
351
- const char *zName = sqlite3_column_text(pStmt,0);
351
+ const unsigned char *zName = sqlite3_column_text(pStmt,0);
352352
@ <li><p>%z(href("%R/cacheget?key=%T",zName))%h(zName)</a><br>
353353
@ size: %s(sqlite3_column_text(pStmt,1))
354354
@ hit-count: %d(sqlite3_column_int(pStmt,2))
355355
@ last-access: %s(sqlite3_column_text(pStmt,3))</p></li>
356356
}
357357
--- src/cache.c
+++ src/cache.c
@@ -346,11 +346,11 @@
346 " ORDER BY tm DESC"
347 );
348 if( pStmt ){
349 @ <ol>
350 while( sqlite3_step(pStmt)==SQLITE_ROW ){
351 const char *zName = sqlite3_column_text(pStmt,0);
352 @ <li><p>%z(href("%R/cacheget?key=%T",zName))%h(zName)</a><br>
353 @ size: %s(sqlite3_column_text(pStmt,1))
354 @ hit-count: %d(sqlite3_column_int(pStmt,2))
355 @ last-access: %s(sqlite3_column_text(pStmt,3))</p></li>
356 }
357
--- src/cache.c
+++ src/cache.c
@@ -346,11 +346,11 @@
346 " ORDER BY tm DESC"
347 );
348 if( pStmt ){
349 @ <ol>
350 while( sqlite3_step(pStmt)==SQLITE_ROW ){
351 const unsigned char *zName = sqlite3_column_text(pStmt,0);
352 @ <li><p>%z(href("%R/cacheget?key=%T",zName))%h(zName)</a><br>
353 @ size: %s(sqlite3_column_text(pStmt,1))
354 @ hit-count: %d(sqlite3_column_int(pStmt,2))
355 @ last-access: %s(sqlite3_column_text(pStmt,3))</p></li>
356 }
357

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button