]> asedeno.scripts.mit.edu Git - 1ts-debian.git/commitdiff
change ZChecksum_t to be an int, because it's more likely to be 4 bytes
authorkcr <kcr@cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f>
Wed, 25 Jul 2001 10:17:55 +0000 (10:17 +0000)
committerkcr <kcr@cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f>
Wed, 25 Jul 2001 10:17:55 +0000 (10:17 +0000)
change the timeval in ZUniquite_Id_t to be a ZTimeval, which is more likely
to be 8 bytes.

git-svn-id: svn://svn.1ts.org/debian/trunk/zephyr@99 cbed1d16-5ef5-0310-b6a1-d4a37b08ba1f

h/zephyr/zephyr.h

index c42cbca6774613446b6a90c46d95738bb908707c..5e4c0d4e0b2049f01c71c84974482e896f722a60 100644 (file)
@@ -62,14 +62,19 @@ typedef enum {
 } ZNotice_Kind_t;
 extern ZCONST char *ZNoticeKinds[9];
 
+struct _ZTimeval {
+       int tv_sec;
+       int tv_usec;
+};
+
 /* Unique ID format */
 typedef struct _ZUnique_Id_t {
     struct     in_addr zuid_addr;
-    struct     timeval tv;
+    struct     _ZTimeval       tv;
 } ZUnique_Id_t;
 
 /* Checksum */
-typedef unsigned long ZChecksum_t;
+typedef unsigned int ZChecksum_t;
 
 /* Notice definition */
 typedef struct _ZNotice_t {
@@ -78,7 +83,7 @@ typedef struct _ZNotice_t {
     ZNotice_Kind_t     z_kind;
     ZUnique_Id_t       z_uid;
 #define z_sender_addr  z_uid.zuid_addr
-    struct             timeval z_time;
+    struct             _ZTimeval z_time;
     unsigned short     z_port;
     int                        z_auth;
     int                        z_checked_auth;