eliminated TIMETOA_BUF definition

This commit is contained in:
Andreas Steffen 2009-04-20 06:21:49 +00:00
parent 2e65569534
commit 4f4ae2f465
3 changed files with 3 additions and 6 deletions

View File

@ -475,7 +475,7 @@ timetoasn1(const time_t *time, asn1_t type)
{
int offset;
const char *format;
char buf[TIMETOA_BUF];
char buf[BUF_LEN];
chunk_t formatted_time;
struct tm *t = gmtime(time);

View File

@ -83,9 +83,6 @@ typedef struct {
int fd;
} prompt_pass_t;
/* size of timetoa string buffer */
#define TIMETOA_BUF 30
/* filter eliminating the directory entries '.' and '..' */
typedef struct dirent dirent_t;
extern int file_select(const dirent_t *entry);

View File

@ -613,9 +613,9 @@ list_ocsp_locations(ocsp_location_t *location, bool requests, bool utc
}
while (certinfo != NULL)
{
char thisUpdate[TIMETOA_BUF];
char thisUpdate[BUF_LEN];
snprintf(thisUpdate, TIMETOA_BUF, "%T", &certinfo->thisUpdate, utc);
snprintf(thisUpdate, BUF_LEN, "%T", &certinfo->thisUpdate, utc);
if (requests)
{