Merge commit 'f2699501bc20a1dc5ee965ca1cbb8f18a3471ff8'
authorSylvain Munaut <tnt@246tNt.com>
Sun, 29 May 2011 13:53:59 +0000 (15:53 +0200)
committerSylvain Munaut <tnt@246tNt.com>
Sun, 29 May 2011 13:53:59 +0000 (15:53 +0200)
src/shared/libosmocore/include/osmocom/core/bitvec.h
src/shared/libosmocore/src/gsm/sysinfo.c
src/shared/libosmocore/src/socket.c

index bbe1641..7cb8a87 100644 (file)
@@ -23,6 +23,7 @@
  *
  */
 
+#include <stdint.h>
 
 /* In GSM mac blocks, every bit can be 0 or 1, or L or H.  L/H are
  * defined relative to the 0x2b padding pattern */
index 0dbff3a..9df1887 100644 (file)
@@ -23,7 +23,6 @@
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
-#include <netinet/in.h>
 
 #include <osmocom/core/bitvec.h>
 #include <osmocom/core/utils.h>
@@ -71,7 +70,7 @@ static const uint8_t sitype2rsl[_MAX_SYSINFO_TYPE] = {
        [SYSINFO_TYPE_5ter]     = RSL_SYSTEM_INFO_5ter,
 };
 
-static const uint8_t rsl2sitype[0xff] = {
+static const uint8_t rsl2sitype[256] = {
        [RSL_SYSTEM_INFO_1] = SYSINFO_TYPE_1,
        [RSL_SYSTEM_INFO_2] = SYSINFO_TYPE_2,
        [RSL_SYSTEM_INFO_3] = SYSINFO_TYPE_3,
index 901b8cd..014bbaa 100644 (file)
@@ -6,10 +6,8 @@
 #include <osmocom/core/select.h>
 #include <osmocom/core/socket.h>
 
-#include <arpa/inet.h>
 #include <sys/socket.h>
 #include <sys/types.h>
-#include <netinet/in.h>
 
 #include <stdio.h>
 #include <unistd.h>