Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ntp/dist/libparse offs_from_utc is known to be ...



details:   https://anonhg.NetBSD.org/src/rev/0bc1f80ceeaa
branches:  trunk
changeset: 327123:0bc1f80ceeaa
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 27 18:12:41 2014 +0000

description:
offs_from_utc is known to be small, so explicitly cast it to int.

diffstat:

 external/bsd/ntp/dist/libparse/data_mbg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 4bd827c5b847 -r 0bc1f80ceeaa external/bsd/ntp/dist/libparse/data_mbg.c
--- a/external/bsd/ntp/dist/libparse/data_mbg.c Thu Feb 27 18:12:28 2014 +0000
+++ b/external/bsd/ntp/dist/libparse/data_mbg.c Thu Feb 27 18:12:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: data_mbg.c,v 1.3 2013/12/28 03:20:14 christos Exp $    */
+/*     $NetBSD: data_mbg.c,v 1.4 2014/02/27 18:12:41 joerg Exp $       */
 
 /*
  * /src/NTP/REPOSITORY/ntp4-dev/libparse/data_mbg.c,v 4.8 2006/06/22 18:40:01 kardel RELEASE_20060622_A
@@ -268,8 +268,8 @@
                 tmp->year, tmp->month, tmp->mday,
                 tmp->hour, tmp->minute, tmp->second, tmp->frac,
                 (tmp->offs_from_utc < 0) ? '-' : '+',
-                abs(tmp->offs_from_utc) / 3600,
-                (abs(tmp->offs_from_utc) / 60) % 60);
+                abs((int)tmp->offs_from_utc) / 3600,
+                (abs((int)tmp->offs_from_utc) / 60) % 60);
        *buffpp += strlen(*buffpp);
 
        mbg_time_status_str(buffpp, tmp->status, size - (*buffpp - s));



Home | Main Index | Thread Index | Old Index