diff options
author | jcid <devnull@localhost> | 2008-10-22 19:44:40 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-10-22 19:44:40 +0200 |
commit | f144706fd7987fa9fa8555e5ff25ec326e4a07f5 (patch) | |
tree | 917722b688bfcf7b06234491409a2b8786f313e5 /src/cache.c | |
parent | b24af37659134db2198199e3b534bc767a582e58 (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.c | 3 |
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 { |