uint32_t size;
};
-static const char *unixdate2str(time_t timestamp)
-{
- static char buf[64];
- struct tm *tm;
-
- tm = localtime(×tamp);
- strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);
- return buf;
-}
-
static void dump_hdr(struct mail_index *index)
{
const struct mail_index_header *hdr = &index->map->hdr;
#include <fcntl.h>
#include <time.h>
-static const char *unixdate2str(time_t timestamp)
-{
- static char buf[64];
- struct tm *tm;
-
- tm = localtime(×tamp);
- strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);
- return buf;
-}
-
static int dump_record(int fd)
{
off_t offset;
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <time.h>
bool doveadm_verbose = FALSE, doveadm_debug = FALSE;
exit(0);
}
+const char *unixdate2str(time_t timestamp)
+{
+ static char buf[64];
+ struct tm *tm;
+
+ tm = localtime(×tamp);
+ strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm);
+ return buf;
+}
+
static void cmd_help(int argc ATTR_UNUSED, char *argv[])
{
const struct doveadm_cmd *cmd;
void usage(void);
void help(const struct doveadm_cmd *cmd);
+const char *unixdate2str(time_t timestamp);
+
#endif