rxrpc: Static arrays of strings should be const char *const[]
authorDavid Howells <dhowells@redhat.com>
Thu, 7 Apr 2016 16:23:23 +0000 (17:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2016 19:34:40 +0000 (15:34 -0400)
Static arrays of strings should be const char *const[].

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/rxrpc/packet.h
net/rxrpc/ar-internal.h
net/rxrpc/misc.c

index 9ebab3a8cf0aa2f566fda02a9b3e4e42561ca42c..b2017440b7654ab37045fabad95b076d539d95d0 100644 (file)
@@ -68,8 +68,6 @@ struct rxrpc_wire_header {
 
 } __packed;
 
-extern const char *rxrpc_pkts[];
-
 #define RXRPC_SUPPORTED_PACKET_TYPES (                 \
                (1 << RXRPC_PACKET_TYPE_DATA) |         \
                (1 << RXRPC_PACKET_TYPE_ACK) |          \
index 24126d954f38055513e680115d562213d882b12e..eeb829e837e10e15aad6423eec2aaac495ec249f 100644 (file)
@@ -637,7 +637,7 @@ extern unsigned int rxrpc_rx_window_size;
 extern unsigned int rxrpc_rx_mtu;
 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 char *rxrpc_acks(u8 reason);
index 8ebeec3384e1301d9ba5307633f0b8f9d335e8cc..1afe9876e79fa9fb22750bc641e30d658215710d 100644 (file)
@@ -58,7 +58,7 @@ unsigned int rxrpc_rx_mtu = 5692;
  */
 unsigned int rxrpc_rx_jumbo_max = 4;
 
-const char *rxrpc_pkts[] = {
+const char *const rxrpc_pkts[] = {
        "?00",
        "DATA", "ACK", "BUSY", "ABORT", "ACKALL", "CHALL", "RESP", "DEBUG",
        "?09", "?10", "?11", "?12", "VERSION", "?14", "?15"