From 1b09b631e97c3b18b65f7e0cfa9e58ffb238fa21 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Tue, 14 Jun 2005 22:15:01 +0000 Subject: [PATCH] changed time delta to signed int --- dtool/src/prc/notifyCategory.cxx | 4 ++-- dtool/src/prc/notifyCategory.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dtool/src/prc/notifyCategory.cxx b/dtool/src/prc/notifyCategory.cxx index 25f72a1419..bf82dd6332 100644 --- a/dtool/src/prc/notifyCategory.cxx +++ b/dtool/src/prc/notifyCategory.cxx @@ -25,7 +25,7 @@ #include // for strftime(). #include -time_t NotifyCategory::_server_delta = 0; +long NotifyCategory::_server_delta = 0; //////////////////////////////////////////////////////////////////// // Function: NotifyCategory::Constructor @@ -144,7 +144,7 @@ get_child(int i) const { // the client with that of a known server. //////////////////////////////////////////////////////////////////// void NotifyCategory:: -set_server_delta(time_t delta) { +set_server_delta(long delta) { _server_delta = delta; } diff --git a/dtool/src/prc/notifyCategory.h b/dtool/src/prc/notifyCategory.h index 3f59d7230c..6ec5cba860 100644 --- a/dtool/src/prc/notifyCategory.h +++ b/dtool/src/prc/notifyCategory.h @@ -76,7 +76,7 @@ PUBLISHED: int get_num_children() const; NotifyCategory *get_child(int i) const; - static void set_server_delta(time_t delta); + static void set_server_delta(long delta); private: string get_config_name() const; @@ -89,7 +89,7 @@ private: typedef pvector Children; Children _children; - static time_t _server_delta; + static long _server_delta; // not a time_t because server delta may be signed. friend class Notify; };