eliminated TIMETOA_BUF definition
This commit is contained in:
parent
2e65569534
commit
4f4ae2f465
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue