conf_func: Mark const and static.

const saves RAM, and static avoids namespace pollution.
This commit is contained in:
Harald Welte
2015-11-07 18:25:46 +01:00
parent fefd571701
commit d4c1421c91

View File

@@ -19,7 +19,7 @@ typedef struct {
void (* run) ( void );
} conf_func;
conf_func config_func_ptrs[] = {
static const conf_func config_func_ptrs[] = {
/* array slot 0 is empty, usb configs start at 1 */
[CFG_NUM_SNIFF] = {
.configure = Sniffer_configure,