Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rtadvd Omit needless casts.
details: https://anonhg.NetBSD.org/src/rev/b47e73c4a634
branches: trunk
changeset: 345918:b47e73c4a634
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jun 15 13:57:39 2016 +0000
description:
Omit needless casts.
diffstat:
usr.sbin/rtadvd/dump.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r ca395cf8beea -r b47e73c4a634 usr.sbin/rtadvd/dump.c
--- a/usr.sbin/rtadvd/dump.c Wed Jun 15 13:57:26 2016 +0000
+++ b/usr.sbin/rtadvd/dump.c Wed Jun 15 13:57:39 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dump.c,v 1.13 2015/11/11 07:48:41 ozaki-r Exp $ */
+/* $NetBSD: dump.c,v 1.14 2016/06/15 13:57:39 riastradh Exp $ */
/* $KAME: dump.c,v 1.34 2004/06/14 05:35:59 itojun Exp $ */
/*
@@ -113,11 +113,11 @@
if (rai->lastsent.tv_sec) {
/* note that ctime() appends CR by itself */
fprintf(fp, " Last RA sent: %s",
- ctime((time_t *)&rai->lastsent.tv_sec));
+ ctime(&rai->lastsent.tv_sec));
}
if (rai->timer) {
fprintf(fp, " Next RA will be sent: %s",
- ctime((time_t *)&rai->timer->tm.tv_sec));
+ ctime(&rai->timer->tm.tv_sec));
}
else
fprintf(fp, " RA timer is stopped");
Home |
Main Index |
Thread Index |
Old Index