From faa04613143eff3345e9a0e1b7abebefb977e6e0 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Sun, 18 Jun 2017 00:25:09 +0200 Subject: gprs_ns_test.c: Remove unused byte arrays Commit 0d4e949e229a649ffd0503d8e930dba8be7dd34d changed the code to use functions with local variables holding the bytes, but forgot to remove the old global variables. This test fixes compilation warnings. Change-Id: I140de30038222b0419423d8c4f9da1946651a4e7 --- tests/gb/gprs_ns_test.c | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) (limited to 'tests/gb/gprs_ns_test.c') diff --git a/tests/gb/gprs_ns_test.c b/tests/gb/gprs_ns_test.c index 4c6fd391..456d8e3f 100644 --- a/tests/gb/gprs_ns_test.c +++ b/tests/gb/gprs_ns_test.c @@ -178,35 +178,6 @@ static void setup_bssgp(struct gprs_ns_inst *nsi, struct sockaddr_in *src_addr, send_bssgp_reset(nsi, src_addr, bvci); } -/* GPRS Network Service, PDU type: NS_RESET, - * Cause: O&M intervention, NS VCI: 0x1122, NSEI 0x1122 - */ -static const unsigned char gprs_ns_reset[12] = { - 0x02, 0x00, 0x81, 0x01, 0x01, 0x82, 0x11, 0x22, - 0x04, 0x82, 0x11, 0x22 -}; - -/* GPRS Network Service, PDU type: NS_RESET, - * Cause: O&M intervention, NS VCI: 0x3344, NSEI 0x1122 - */ -static const unsigned char gprs_ns_reset_vci2[12] = { - 0x02, 0x00, 0x81, 0x01, 0x01, 0x82, 0x33, 0x44, - 0x04, 0x82, 0x11, 0x22 -}; - -/* GPRS Network Service, PDU type: NS_RESET, - * Cause: O&M intervention, NS VCI: 0x1122, NSEI 0x3344 - */ -static const unsigned char gprs_ns_reset_nsei2[12] = { - 0x02, 0x00, 0x81, 0x01, 0x01, 0x82, 0x11, 0x22, - 0x04, 0x82, 0x33, 0x44 -}; - -/* GPRS Network Service, PDU type: NS_ALIVE */ -static const unsigned char gprs_ns_alive[1] = { - 0x0a -}; - /* GPRS Network Service, PDU type: NS_STATUS, * Cause: PDU not compatible with the protocol state * PDU: NS_ALIVE @@ -215,26 +186,6 @@ static const unsigned char gprs_ns_status_invalid_alive[7] = { 0x08, 0x00, 0x81, 0x0a, 0x02, 0x81, 0x0a }; -/* GPRS Network Service, PDU type: NS_ALIVE_ACK */ -static const unsigned char gprs_ns_alive_ack[1] = { - 0x0b -}; - -/* GPRS Network Service, PDU type: NS_UNBLOCK */ -static const unsigned char gprs_ns_unblock[1] = { - 0x06 -}; - - -/* GPRS Network Service, PDU type: NS_STATUS, - * Cause: PDU not compatible with the protocol state - * PDU: NS_RESET_ACK, NS VCI: 0x1122, NSEI 0x1122 - */ -static const unsigned char gprs_ns_status_invalid_reset_ack[15] = { - 0x08, 0x00, 0x81, 0x0a, 0x02, 0x89, 0x03, 0x01, - 0x82, 0x11, 0x22, 0x04, 0x82, 0x11, 0x22 -}; - /* GPRS Network Service, PDU type: NS_UNITDATA, BVCI 0 */ static const unsigned char gprs_bssgp_reset[22] = { 0x00, 0x00, 0x00, 0x00, 0x22, 0x04, 0x82, 0x4a, -- cgit v1.2.3