25 lines
675 B
Text
25 lines
675 B
Text
$NetBSD: patch-src_zmc_cpp,v 1.2 2013/03/24 16:47:47 joerg Exp $
|
|
|
|
Use a more appropriate initialisation for a long, and use the definition out
|
|
of <limits.h>, for portability.
|
|
|
|
--- src/zmc.cpp.orig 2011-06-21 09:19:11.000000000 +0000
|
|
+++ src/zmc.cpp
|
|
@@ -19,7 +19,7 @@
|
|
|
|
#include <getopt.h>
|
|
#include <signal.h>
|
|
-#include <values.h>
|
|
+#include <limits.h>
|
|
|
|
#include "zm.h"
|
|
#include "zm_db.h"
|
|
@@ -224,7 +224,7 @@ int main( int argc, char *argv[] )
|
|
sigprocmask( SIG_BLOCK, &block_set, 0 );
|
|
for ( int i = 0; i < n_monitors; i++ )
|
|
{
|
|
- long min_delay = MAXINT;
|
|
+ long min_delay = LONG_MAX;
|
|
|
|
gettimeofday( &now, NULL );
|
|
for ( int j = 0; j < n_monitors; j++ )
|