mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 17:28:32 +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 );
|
void (* run) ( void );
|
||||||
} conf_func;
|
} conf_func;
|
||||||
|
|
||||||
conf_func config_func_ptrs[] = {
|
static const conf_func config_func_ptrs[] = {
|
||||||
/* array slot 0 is empty, usb configs start at 1 */
|
/* array slot 0 is empty, usb configs start at 1 */
|
||||||
[CFG_NUM_SNIFF] = {
|
[CFG_NUM_SNIFF] = {
|
||||||
.configure = Sniffer_configure,
|
.configure = Sniffer_configure,
|
||||||
|
|||||||
Reference in New Issue
Block a user