mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
conf_func: Mark const and static.
const saves RAM, and static avoids namespace pollution.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user