Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2011 19:19:19 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229136 - stable/9/libexec/bootpd/bootpgw
Message-ID:  <201112311919.pBVJJJ4E078768@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 31 19:19:19 2011
New Revision: 229136
URL: http://svn.freebsd.org/changeset/base/229136

Log:
  MFC r228581:
  
  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.

Modified:
  stable/9/libexec/bootpd/bootpgw/bootpgw.c
Directory Properties:
  stable/9/libexec/bootpd/   (props changed)

Modified: stable/9/libexec/bootpd/bootpgw/bootpgw.c
==============================================================================
--- stable/9/libexec/bootpd/bootpgw/bootpgw.c	Sat Dec 31 19:01:48 2011	(r229135)
+++ stable/9/libexec/bootpd/bootpgw/bootpgw.c	Sat Dec 31 19:19:19 2011	(r229136)
@@ -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?201112311919.pBVJJJ4E078768>