This commit fixes the following gcc warning on freebsd systems:
replay_cache.c: In function 'replay_file_cache_init':
replay_cache.c:312: warning: format '%ld' expects type 'long int *', but argument 9 has type 'time_t *'
char line_buf[MAX_LINE_LEN] = {0};
char src_ip[INET_ADDRSTRLEN+1] = {0};
char dst_ip[INET_ADDRSTRLEN+1] = {0};
+ long int time_tmp;
struct digest_cache_list *digest_elm = NULL;
&(digest_elm->cache_info.src_port),
dst_ip,
&(digest_elm->cache_info.dst_port),
- &(digest_elm->cache_info.created)) != 7)
+ &time_tmp) != 7)
{
if(opts->verbose)
fprintf(stderr,
free(digest_elm);
continue;
}
+ digest_elm->cache_info.created = time_tmp;
+
if (inet_pton(AF_INET, src_ip, &(digest_elm->cache_info.src_ip)) != 1)
{