]> mj.ucw.cz Git - nwho.git/blobdiff - net.h
Use <inttypes.h> instead of <asm/types.h>
[nwho.git] / net.h
diff --git a/net.h b/net.h
index 7b65eca11c096f32864d3057ce28d6dff6104a60..02d1c374ab26e3c012ed8a8be0b40c37e5c033f7 100644 (file)
--- a/net.h
+++ b/net.h
@@ -7,6 +7,10 @@
  *     of the GNU General Public License. See file COPYING in any of the GNU packages.
  */
 
+#include <inttypes.h>
+
+typedef uint32_t u32;
+
 #define MAX_USERS 128
 
 struct userinfo {
@@ -14,17 +18,17 @@ struct userinfo {
   char con[8];
   char mesg_y;
   char pad;
-  __u32 login_time;
-  __u32 idle_time;
+  u32 login_time;
+  u32 idle_time;
 };
 
 struct rywho_pkt {
-  __u32 magic;                         /* Guard against ancient nwho versions */
-  __u32 local_time;
-  __u32 server_time;                   /* Reserved for use by the server */
-  __u32 num_users;
-  __u32 uptime;
-  __u32 avl[3];
+  u32 magic;                           /* Guard against ancient nwho versions */
+  u32 local_time;
+  u32 server_time;                     /* Reserved for use by the server */
+  u32 num_users;
+  u32 uptime;
+  u32 avl[3];
   struct userinfo users[MAX_USERS];
 };