Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
c91cdcd4
Commit
c91cdcd4
authored
10 years ago
by
Cenk Gündoğan
Browse files
Options
Downloads
Patches
Plain Diff
examples/rpl_udp: remove common globals by prefixing with static
parent
f3c6ef7e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/rpl_udp/main.c
+1
-1
1 addition, 1 deletion
examples/rpl_udp/main.c
examples/rpl_udp/rpl.c
+2
-2
2 additions, 2 deletions
examples/rpl_udp/rpl.c
examples/rpl_udp/udp.c
+1
-1
1 addition, 1 deletion
examples/rpl_udp/udp.c
with
4 additions
and
4 deletions
examples/rpl_udp/main.c
+
1
−
1
View file @
c91cdcd4
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include
"rpl_udp.h"
#include
"rpl_udp.h"
const
shell_command_t
shell_commands
[]
=
{
static
const
shell_command_t
shell_commands
[]
=
{
{
"init"
,
"Initialize network"
,
rpl_udp_init
},
{
"init"
,
"Initialize network"
,
rpl_udp_init
},
{
"set"
,
"Set ID"
,
rpl_udp_set_id
},
{
"set"
,
"Set ID"
,
rpl_udp_set_id
},
{
"dodag"
,
"Shows the dodag"
,
rpl_udp_dodag
},
{
"dodag"
,
"Shows the dodag"
,
rpl_udp_dodag
},
...
...
This diff is collapsed.
Click to expand it.
examples/rpl_udp/rpl.c
+
2
−
2
View file @
c91cdcd4
...
@@ -35,10 +35,10 @@
...
@@ -35,10 +35,10 @@
#define TRANSCEIVER TRANSCEIVER_DEFAULT
#define TRANSCEIVER TRANSCEIVER_DEFAULT
char
monitor_stack_buffer
[
MONITOR_STACK_SIZE
];
static
char
monitor_stack_buffer
[
MONITOR_STACK_SIZE
];
radio_address_t
id
;
radio_address_t
id
;
uint8_t
is_root
=
0
;
static
uint8_t
is_root
=
0
;
void
rpl_udp_init
(
int
argc
,
char
**
argv
)
void
rpl_udp_init
(
int
argc
,
char
**
argv
)
{
{
...
...
This diff is collapsed.
Click to expand it.
examples/rpl_udp/udp.c
+
1
−
1
View file @
c91cdcd4
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#define UDP_BUFFER_SIZE (128)
#define UDP_BUFFER_SIZE (128)
#define SERVER_PORT (0xFF01)
#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
];
char
addr_str
[
IPV6_MAX_ADDR_STR_LEN
];
static
void
*
init_udp_server
(
void
*
);
static
void
*
init_udp_server
(
void
*
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment