diff options
author | 2013-04-17 14:52:31 +0000 | |
---|---|---|
committer | 2013-04-17 14:52:31 +0000 | |
commit | 1b5aba570fcebd7ff7e868f939b3fbec83931f79 (patch) | |
tree | a4f62a1fdef33dfaa500b51b27ed5eaa8d2da748 | |
parent | Replace some casts by ifatoia() and sintosa(). (diff) | |
download | wireguard-openbsd-1b5aba570fcebd7ff7e868f939b3fbec83931f79.tar.xz wireguard-openbsd-1b5aba570fcebd7ff7e868f939b3fbec83931f79.zip |
(long long) and %lld for time_t output
ok nicm
-rw-r--r-- | usr.bin/tmux/format.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index cfcb20863e4..ac9274c7730 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.23 2013/03/25 11:40:54 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.24 2013/04/17 14:52:31 deraadt Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net> @@ -288,7 +288,7 @@ format_session(struct format_tree *ft, struct session *s) format_add(ft, "session_group", "%u", session_group_index(sg)); t = s->creation_time.tv_sec; - format_add(ft, "session_created", "%ld", (long) t); + format_add(ft, "session_created", "%lld", (long long) t); tim = ctime(&t); *strchr(tim, '\n') = '\0'; format_add(ft, "session_created_string", "%s", tim); @@ -314,13 +314,13 @@ format_client(struct format_tree *ft, struct client *c) format_add(ft, "client_termname", "%s", c->tty.termname); t = c->creation_time.tv_sec; - format_add(ft, "client_created", "%ld", (long) t); + format_add(ft, "client_created", "%lld", (long long) t); tim = ctime(&t); *strchr(tim, '\n') = '\0'; format_add(ft, "client_created_string", "%s", tim); t = c->activity_time.tv_sec; - format_add(ft, "client_activity", "%ld", (long) t); + format_add(ft, "client_activity", "%lld", (long long) t); tim = ctime(&t); *strchr(tim, '\n') = '\0'; format_add(ft, "client_activity_string", "%s", tim); |