]> git.pond.sub.org Git - empserver/blobdiff - include/nat.h
Store uids as int to support more sectors and units
[empserver] / include / nat.h
index 6808f62474b226c2ff6782ab49215491635b45d6..ce1390151fcf144d2b803da582feafb6db767c4c 100644 (file)
@@ -31,6 +31,8 @@
  *     Thomas Ruschak
  *     Ken Stevens, 1995
  *     Steve McClure, 1998-2000
+ *     Ron Koenderink, 2005-2008
+ *     Markus Armbruster, 2005-2008
  */
 
 #ifndef NAT_H
@@ -69,7 +71,7 @@ enum nat_status {
 struct realmstr {
     /* initial part must match struct empobj */
     short ef_type;
-    short r_uid;               /* realm table index */
+    int r_uid;                 /* realm table index */
     unsigned r_seqno;
     time_t r_timestamp;                /* Last time this realm was touched */
     natid r_cnum;              /* country number */
@@ -82,7 +84,7 @@ struct realmstr {
 struct natstr {
     /* initial part must match struct empobj */
     short ef_type;
-    short nat_uid;             /* equals nat_cnum */
+    int nat_uid;               /* equals nat_cnum */
     unsigned nat_seqno;
     time_t nat_timestamp;
     natid nat_cnum;            /* our country number */