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 f28e88f..b1ca3b6 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 *******/