summaryrefslogtreecommitdiff
path: root/src/cache.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-10-22 19:44:40 +0200
committerjcid <devnull@localhost>2008-10-22 19:44:40 +0200
commitf144706fd7987fa9fa8555e5ff25ec326e4a07f5 (patch)
tree917722b688bfcf7b06234491409a2b8786f313e5 /src/cache.c
parentb24af37659134db2198199e3b534bc767a582e58 (diff)
- Allowed compilation with older machines by removing a few C99isms.
- Added use of inttypes.h when stdint.h isn't found.
Diffstat (limited to 'src/cache.c')
-rw-r--r--src/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c
index 370d4140..a6342da1 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -513,8 +513,9 @@ int a_Cache_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize)
{
CacheEntry_t *entry = Cache_entry_search_with_redirect(Url);
if (entry) {
+ Dstr *data;
Cache_ref_data(entry);
- Dstr *data = Cache_data(entry);
+ data = Cache_data(entry);
*PBuf = data->str;
*BufSize = data->len;
} else {