Code

ceph plugin: mark variable as static and const
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Mar 2016 16:53:50 +0000 (17:53 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 4 Mar 2016 16:56:12 +0000 (17:56 +0100)
src/ceph.c

index f28e88f530060dbc0673adcb24960de24c9ca571..b1ca3b66649dce4d6e086910b89ef13f534a7d2c 100644 (file)
@@ -96,7 +96,7 @@ enum ceph_dset_type_d
 };
 
 /** Valid types for ceph defined in types.db */
-const char * ceph_dset_types [CEPH_DSET_TYPES_NUM] =
+static const char * const ceph_dset_types [CEPH_DSET_TYPES_NUM] =
                                    {"ceph_latency", "ceph_bytes", "ceph_rate"};
 
 /******* ceph_daemon *******/