aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2018-06-19 01:33:03 +0000
committerCy Schubert <cy@FreeBSD.org>2018-06-19 01:33:03 +0000
commit9ee9d3867243380706e6709c00ef1a09e4f20c07 (patch)
treef7185348e187a2ee73cc0a1b19b07d92eb70fe79 /contrib
parent4003d9383510b238ee789a49f91a3dc581a64a85 (diff)
downloadsrc-9ee9d3867243380706e6709c00ef1a09e4f20c07.tar.gz
src-9ee9d3867243380706e6709c00ef1a09e4f20c07.zip
Fix amq -i timestamp segmentation violation.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=335355
Diffstat (limited to 'contrib')
-rw-r--r--contrib/amd/amq/amq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/amd/amq/amq.c b/contrib/amd/amq/amq.c
index 7140784c8631..a1405f985602 100644
--- a/contrib/amd/amq/amq.c
+++ b/contrib/amd/amq/amq.c
@@ -79,7 +79,7 @@ enum show_opt {
static void
time_print(time_type tt)
{
- time_t t = (time_t)*tt;
+ time_t t = (time_t)(intptr_t)tt;
struct tm *tp = localtime(&t);
printf("%02d/%02d/%04d %02d:%02d:%02d",
tp->tm_mon + 1, tp->tm_mday,