Move variable definition to start of function
This commit is contained in:
parent
950bde89c2
commit
c8432009e9
|
@ -493,6 +493,7 @@ publish(void)
|
||||||
int len;
|
int len;
|
||||||
int remaining = APP_BUFFER_SIZE;
|
int remaining = APP_BUFFER_SIZE;
|
||||||
int i;
|
int i;
|
||||||
|
char def_rt_str[64];
|
||||||
|
|
||||||
seq_nr_value++;
|
seq_nr_value++;
|
||||||
|
|
||||||
|
@ -519,7 +520,6 @@ publish(void)
|
||||||
buf_ptr += len;
|
buf_ptr += len;
|
||||||
|
|
||||||
/* Put our Default route's string representation in a buffer */
|
/* Put our Default route's string representation in a buffer */
|
||||||
char def_rt_str[64];
|
|
||||||
memset(def_rt_str, 0, sizeof(def_rt_str));
|
memset(def_rt_str, 0, sizeof(def_rt_str));
|
||||||
ipaddr_sprintf(def_rt_str, sizeof(def_rt_str), uip_ds6_defrt_choose());
|
ipaddr_sprintf(def_rt_str, sizeof(def_rt_str), uip_ds6_defrt_choose());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue