Module Name:    src
Committed By:   joerg
Date:           Thu Feb 27 18:12:41 UTC 2014

Modified Files:
        src/external/bsd/ntp/dist/libparse: data_mbg.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/ntp/dist/libparse/data_mbg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/ntp/dist/libparse/data_mbg.c
diff -u src/external/bsd/ntp/dist/libparse/data_mbg.c:1.3 src/external/bsd/ntp/dist/libparse/data_mbg.c:1.4
--- src/external/bsd/ntp/dist/libparse/data_mbg.c:1.3	Sat Dec 28 03:20:14 2013
+++ src/external/bsd/ntp/dist/libparse/data_mbg.c	Thu Feb 27 18:12:41 2014
@@ -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 @@ mbg_tm_str(
 		 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));

Reply via email to