]> 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 5749a1bd0bdbafd7042651fd718ed138bb0387b6..ce1390151fcf144d2b803da582feafb6db767c4c 100644 (file)
@@ -71,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 */
@@ -84,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 */