diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-18 17:04:00 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-18 17:31:39 +0200 |
commit | c42ad8b68619b58bfbc98a0409d74a86b603aebf (patch) | |
tree | ac806f2e5657c405471165ed842b78b170f76def /openbsc/src/gprs | |
parent | 5cde92cb0e447ef9d415918c5194c3e65282ab28 (diff) |
misc: Move from u_int to uint types of stdint.h
This was done with sed on the files.
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r-- | openbsc/src/gprs/crc24.c | 4 | ||||
-rw-r--r-- | openbsc/src/gprs/gb_proxy_main.c | 2 | ||||
-rw-r--r-- | openbsc/src/gprs/sgsn_main.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/gprs/crc24.c b/openbsc/src/gprs/crc24.c index 4d65e6ee1..aa48dd324 100644 --- a/openbsc/src/gprs/crc24.c +++ b/openbsc/src/gprs/crc24.c @@ -23,7 +23,7 @@ #include <openbsc/crc24.h> /* CRC24 table - FCS */ -static const u_int32_t tbl_crc24[256] = { +static const uint32_t tbl_crc24[256] = { 0x00000000, 0x00d6a776, 0x00f64557, 0x0020e221, 0x00b78115, 0x00612663, 0x0041c442, 0x00976334, 0x00340991, 0x00e2aee7, 0x00c24cc6, 0x0014ebb0, 0x00838884, 0x00552ff2, 0x0075cdd3, 0x00a36aa5, 0x00681322, 0x00beb454, 0x009e5675, 0x0048f103, 0x00df9237, 0x00093541, 0x0029d760, 0x00ff7016, @@ -60,7 +60,7 @@ static const u_int32_t tbl_crc24[256] = { #define INIT_CRC24 0xffffff -u_int32_t crc24_calc(u_int32_t fcs, u_int8_t *cp, unsigned int len) +uint32_t crc24_calc(uint32_t fcs, uint8_t *cp, unsigned int len) { while (len--) fcs = (fcs >> 8) ^ tbl_crc24[(fcs ^ *cp++) & 0xff]; diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c index bd18b2fc3..3e87f0895 100644 --- a/openbsc/src/gprs/gb_proxy_main.c +++ b/openbsc/src/gprs/gb_proxy_main.c @@ -75,7 +75,7 @@ extern struct gbprox_peer *gbprox_peer_sgsn; /* call-back function for the NS protocol */ static int proxy_ns_cb(enum gprs_ns_evt event, struct gprs_nsvc *nsvc, - struct msgb *msg, u_int16_t bvci) + struct msgb *msg, uint16_t bvci) { int rc = 0; diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index 8ec74cffe..1967de7e0 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -81,7 +81,7 @@ struct sgsn_instance *sgsn = &sgsn_inst; /* call-back function for the NS protocol */ static int sgsn_ns_cb(enum gprs_ns_evt event, struct gprs_nsvc *nsvc, - struct msgb *msg, u_int16_t bvci) + struct msgb *msg, uint16_t bvci) { int rc = 0; |