Browse Source

changed time delta to signed int

Dave Schuyler 20 years ago
parent
commit
1b09b631e9
2 changed files with 4 additions and 4 deletions
  1. 2 2
      dtool/src/prc/notifyCategory.cxx
  2. 2 2
      dtool/src/prc/notifyCategory.h

+ 2 - 2
dtool/src/prc/notifyCategory.cxx

@@ -25,7 +25,7 @@
 #include <time.h>  // for strftime().
 #include <time.h>  // for strftime().
 #include <assert.h>
 #include <assert.h>
 
 
-time_t NotifyCategory::_server_delta = 0;
+long NotifyCategory::_server_delta = 0;
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: NotifyCategory::Constructor
 //     Function: NotifyCategory::Constructor
@@ -144,7 +144,7 @@ get_child(int i) const {
 //               the client with that of a known server.
 //               the client with that of a known server.
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void NotifyCategory::
 void NotifyCategory::
-set_server_delta(time_t delta) {
+set_server_delta(long delta) {
   _server_delta = delta;
   _server_delta = delta;
 }
 }
 
 

+ 2 - 2
dtool/src/prc/notifyCategory.h

@@ -76,7 +76,7 @@ PUBLISHED:
   int get_num_children() const;
   int get_num_children() const;
   NotifyCategory *get_child(int i) const;
   NotifyCategory *get_child(int i) const;
 
 
-  static void set_server_delta(time_t delta);
+  static void set_server_delta(long delta);
 
 
 private:
 private:
   string get_config_name() const;
   string get_config_name() const;
@@ -89,7 +89,7 @@ private:
   typedef pvector<NotifyCategory *> Children;
   typedef pvector<NotifyCategory *> Children;
   Children _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;
   friend class Notify;
 };
 };