It needs to be non-static, but it may be const because the amp filter
only reads the values of this array.
#include "string.h"
#include "error.h"
-extern char *stat_item_values[NUM_STAT_ITEMS];
+extern const char *stat_item_values[NUM_STAT_ITEMS];
/** Data specific to the amplify filter. */
struct private_amp_data {
* This is used by the amp filter which first tries to obtain the amplification
* value from an element in this array.
*/
-char *stat_item_values[NUM_STAT_ITEMS] = {NULL};
+const char *stat_item_values[NUM_STAT_ITEMS] = {NULL};
/** The task that reads from stdin. */
static struct stdin_task stdin_task_struct;