diff options
Diffstat (limited to 'mgmtd/mgmt.h')
-rw-r--r-- | mgmtd/mgmt.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mgmtd/mgmt.h b/mgmtd/mgmt.h index 83353e817..603296bb3 100644 --- a/mgmtd/mgmt.h +++ b/mgmtd/mgmt.h @@ -108,16 +108,4 @@ extern void mgmt_master_init(struct event_loop *master, const int buffer_size); extern void mgmt_init(void); extern void mgmt_vty_init(void); -static inline char *mgmt_realtime_to_string(struct timeval *tv, char *buf, - size_t sz) -{ - struct tm tm; - size_t n; - - localtime_r((const time_t *)&tv->tv_sec, &tm); - n = strftime(buf, sz, "%Y-%m-%dT%H:%M:%S", &tm); - snprintf(&buf[n], sz - n, ",%06u000", (unsigned int)tv->tv_usec); - return buf; -} - #endif /* _FRR_MGMTD_H */ |