Skip to content

Commit 235d530

Browse files
hummeltechǝɹʇʇɐʃǝ◖ xıʃǝɟ
authored andcommitted
Fix 'Wrong type of arguments to formatting function' alerts
1 parent 7dacc63 commit 235d530

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/store_ro_http_proxy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static size_t write_memory_callback(void *contents, size_t size, size_t nmemb, v
7171
chunk->memory = malloc(realsize);
7272
}
7373

74-
g_logger(G_LOG_LEVEL_DEBUG, "ro_http_proxy_tile_read: writing a chunk: Position %i, size %i", chunk->size, realsize);
74+
g_logger(G_LOG_LEVEL_DEBUG, "ro_http_proxy_tile_read: writing a chunk: Position %lu, size %lu", chunk->size, realsize);
7575

7676
memcpy(&(chunk->memory[chunk->size]), contents, realsize);
7777
chunk->size += realsize;
@@ -143,7 +143,7 @@ static int ro_http_proxy_tile_retrieve(struct storage_backend * store, const cha
143143
ctx->cache.st_stat.expired = 0;
144144
res = curl_easy_getinfo(ctx->ctx, CURLINFO_FILETIME, &(ctx->cache.st_stat.mtime));
145145
ctx->cache.st_stat.atime = 0;
146-
g_logger(G_LOG_LEVEL_DEBUG, "ro_http_proxy_tile_read: Read file of size %i", chunk.size);
146+
g_logger(G_LOG_LEVEL_DEBUG, "ro_http_proxy_tile_read: Read file of size %lu", chunk.size);
147147
break;
148148
}
149149

@@ -173,7 +173,7 @@ static int ro_http_proxy_tile_read(struct storage_backend * store, const char *x
173173

174174
if (ro_http_proxy_tile_retrieve(store, xmlconfig, options, x, y, z) > 0) {
175175
if (ctx->cache.st_stat.size > sz) {
176-
g_logger(G_LOG_LEVEL_ERROR, "ro_http_proxy_tile_read: size was too big, overrun %i %i", sz, ctx->cache.st_stat.size);
176+
g_logger(G_LOG_LEVEL_ERROR, "ro_http_proxy_tile_read: size was too big, overrun %lu %li", sz, ctx->cache.st_stat.size);
177177
return -1;
178178
}
179179

@@ -218,7 +218,7 @@ static int ro_http_proxy_metatile_write(struct storage_backend * store, const ch
218218

219219
static int ro_http_proxy_metatile_delete(struct storage_backend * store, const char *xmlconfig, int x, int y, int z)
220220
{
221-
g_logger(G_LOG_LEVEL_ERROR, "ro_http_proxy_metatile_expire: This is a readonly storage backend. Write functionality isn't implemented");
221+
g_logger(G_LOG_LEVEL_ERROR, "ro_http_proxy_metatile_delete: This is a readonly storage backend. Write functionality isn't implemented");
222222
return -1;
223223
}
224224

0 commit comments

Comments
 (0)