Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b3e87f1 authored by David Howells's avatar David Howells Committed by David S. Miller
Browse files

rxrpc: Static arrays of strings should be const char *const[]



Static arrays of strings should be const char *const[].

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e688d9c
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -68,8 +68,6 @@ struct rxrpc_wire_header {


} __packed;
} __packed;


extern const char *rxrpc_pkts[];

#define RXRPC_SUPPORTED_PACKET_TYPES (			\
#define RXRPC_SUPPORTED_PACKET_TYPES (			\
		(1 << RXRPC_PACKET_TYPE_DATA) |		\
		(1 << RXRPC_PACKET_TYPE_DATA) |		\
		(1 << RXRPC_PACKET_TYPE_ACK) |		\
		(1 << RXRPC_PACKET_TYPE_ACK) |		\
+1 −1
Original line number Original line Diff line number Diff line
@@ -637,7 +637,7 @@ extern unsigned int rxrpc_rx_window_size;
extern unsigned int rxrpc_rx_mtu;
extern unsigned int rxrpc_rx_mtu;
extern unsigned int rxrpc_rx_jumbo_max;
extern unsigned int rxrpc_rx_jumbo_max;


extern const char *rxrpc_pkts[];
extern const char *const rxrpc_pkts[];
extern const s8 rxrpc_ack_priority[];
extern const s8 rxrpc_ack_priority[];


extern const char *rxrpc_acks(u8 reason);
extern const char *rxrpc_acks(u8 reason);
+1 −1
Original line number Original line Diff line number Diff line
@@ -58,7 +58,7 @@ unsigned int rxrpc_rx_mtu = 5692;
 */
 */
unsigned int rxrpc_rx_jumbo_max = 4;
unsigned int rxrpc_rx_jumbo_max = 4;


const char *rxrpc_pkts[] = {
const char *const rxrpc_pkts[] = {
	"?00",
	"?00",
	"DATA", "ACK", "BUSY", "ABORT", "ACKALL", "CHALL", "RESP", "DEBUG",
	"DATA", "ACK", "BUSY", "ABORT", "ACKALL", "CHALL", "RESP", "DEBUG",
	"?09", "?10", "?11", "?12", "VERSION", "?14", "?15"
	"?09", "?10", "?11", "?12", "VERSION", "?14", "?15"