summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
baa5ad1)
Avoid integer truncation on 64-bit systems.
Coverity-id: 13864
Signed-off-by: John Keeping <john@keeping.me.uk>
struct cache_slot {
const char *key;
struct cache_slot {
const char *key;
int ttl;
cache_fill_fn fn;
int cache_fd;
int ttl;
cache_fill_fn fn;
int cache_fd;
static int open_slot(struct cache_slot *slot)
{
char *bufz;
static int open_slot(struct cache_slot *slot)
{
char *bufz;
+ ssize_t bufkeylen = -1;
slot->cache_fd = open(slot->cache_name, O_RDONLY);
if (slot->cache_fd == -1)
slot->cache_fd = open(slot->cache_name, O_RDONLY);
if (slot->cache_fd == -1)