Code changes requested by fmorgner
[umurmur.git] / src / sharedmemory_struct.h
index d1453fbe5de24b8b71e9f1788cc3fadaeecba5ff..a36382e8e425126e720643cc7ce3ab8d3e1591d0 100644 (file)
@@ -2,12 +2,12 @@ typedef struct
 {\r
 \r
   char username[121];\r
-  char ipaddress[46];\r
+  char ipaddress[INET6_ADDRSTRLEN];\r
   char channel[121];\r
   char os[121], release[121], os_version[121];\r
   int tcp_port, udp_port;\r
   bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus;\r
-       int availableBandwidth;\r
+  int availableBandwidth;\r
   uint32_t online_secs, idle_secs;\r
   bool_t isAdmin;\r
   bool_t isSuppressed;\r
@@ -19,9 +19,10 @@ typedef struct
 typedef struct\r
 {\r
 \r
+  int shmtotal_size, shmclient_size;\r
   int clientcount, server_max_clients;\r
   unsigned int umurmurd_pid;\r
-       uint8_t alive; \r
-  shmclient_t client[];    \r
-  \r
+  uint8_t alive;\r
+  shmclient_t client[];\r
+\r
 }shm_t;\r