examples/rpl_udp: remove common globals by prefixing with static

This commit is contained in:
Cenk Gündoğan 2015-02-01 16:43:35 +01:00
parent f3c6ef7e66
commit c91cdcd4d1
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
#include "rpl_udp.h"
const shell_command_t shell_commands[] = {
static const shell_command_t shell_commands[] = {
{"init", "Initialize network", rpl_udp_init},
{"set", "Set ID", rpl_udp_set_id},
{"dodag", "Shows the dodag", rpl_udp_dodag},

View File

@ -35,10 +35,10 @@
#define TRANSCEIVER TRANSCEIVER_DEFAULT
char monitor_stack_buffer[MONITOR_STACK_SIZE];
static char monitor_stack_buffer[MONITOR_STACK_SIZE];
radio_address_t id;
uint8_t is_root = 0;
static uint8_t is_root = 0;
void rpl_udp_init(int argc, char **argv)
{

View File

@ -35,7 +35,7 @@
#define UDP_BUFFER_SIZE (128)
#define SERVER_PORT (0xFF01)
char udp_server_stack_buffer[KERNEL_CONF_STACKSIZE_MAIN];
static char udp_server_stack_buffer[KERNEL_CONF_STACKSIZE_MAIN];
char addr_str[IPV6_MAX_ADDR_STR_LEN];
static void *init_udp_server(void *);