Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2011 15:38:11 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228581 - head/libexec/bootpd/bootpgw
Message-ID:  <201112161538.pBGFcBCQ013850@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Dec 16 15:38:11 2011
New Revision: 228581
URL: http://svn.freebsd.org/changeset/base/228581

Log:
  In libexec/bootpd/bootpgw/bootpgw.c, add a cast for the remaining
  minutes of activity, to avoid a warning on platforms where time_t is a
  32-bit integer.
  
  MFC after:	1 week

Modified:
  head/libexec/bootpd/bootpgw/bootpgw.c

Modified: head/libexec/bootpd/bootpgw/bootpgw.c
==============================================================================
--- head/libexec/bootpd/bootpgw/bootpgw.c	Fri Dec 16 15:12:42 2011	(r228580)
+++ head/libexec/bootpd/bootpgw/bootpgw.c	Fri Dec 16 15:38:11 2011	(r228581)
@@ -452,7 +452,7 @@ main(argc, argv)
 		}
 		if (!(readfds & (1 << s))) {
 			report(LOG_INFO, "exiting after %ld minutes of inactivity",
-				   actualtimeout.tv_sec / 60);
+				   (long)(actualtimeout.tv_sec / 60));
 			exit(0);
 		}
 		ra_len = sizeof(recv_addr);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112161538.pBGFcBCQ013850>