tests&examples: apply coding conventions to sizeof
This commit is contained in:
parent
06a86aef20
commit
1a8967cb45
@ -115,7 +115,7 @@ void udp_send(int argc, char **argv)
|
||||
return;
|
||||
}
|
||||
|
||||
memset(&sa, 0, sizeof sa);
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
|
||||
ipv6_addr_init(&ipaddr, 0xabcd, 0x0, 0x0, 0x0, 0x3612, 0x00ff, 0xfe00, (uint16_t)address);
|
||||
|
||||
@ -125,7 +125,7 @@ void udp_send(int argc, char **argv)
|
||||
|
||||
bytes_sent = destiny_socket_sendto(sock, (char *)text,
|
||||
strlen(text) + 1, 0, &sa,
|
||||
sizeof sa);
|
||||
sizeof(sa));
|
||||
|
||||
if (bytes_sent < 0) {
|
||||
printf("Error sending packet!\n");
|
||||
|
||||
@ -48,7 +48,7 @@ void timer_thread(void)
|
||||
/* without a queue, the message would get lost */
|
||||
/* because of the way this timer works, there can be max 1 queued message */
|
||||
msg_t msgq[1];
|
||||
msg_init_queue(msgq, sizeof msgq);
|
||||
msg_init_queue(msgq, sizeof(msgq));
|
||||
|
||||
while (1) {
|
||||
msg_t m;
|
||||
@ -90,7 +90,7 @@ int main(void)
|
||||
msg_t m;
|
||||
int pid = thread_create(
|
||||
timer_stack,
|
||||
sizeof timer_stack,
|
||||
sizeof(timer_stack),
|
||||
PRIORITY_MAIN - 1,
|
||||
CREATE_STACKTEST,
|
||||
timer_thread,
|
||||
@ -106,7 +106,7 @@ int main(void)
|
||||
|
||||
int pid2 = thread_create(
|
||||
timer_stack_local,
|
||||
sizeof timer_stack_local,
|
||||
sizeof(timer_stack_local),
|
||||
PRIORITY_MAIN - 1,
|
||||
CREATE_STACKTEST,
|
||||
timer_thread_local,
|
||||
|
||||
@ -56,7 +56,7 @@ void timer_thread(void)
|
||||
printf("This is thread %d\n", thread_getpid());
|
||||
|
||||
msg_t msgq[16];
|
||||
msg_init_queue(msgq, sizeof msgq);
|
||||
msg_init_queue(msgq, sizeof(msgq));
|
||||
|
||||
while (1) {
|
||||
msg_t m;
|
||||
@ -102,7 +102,7 @@ int main(void)
|
||||
msg_t m;
|
||||
int pid = thread_create(
|
||||
timer_stack,
|
||||
sizeof timer_stack,
|
||||
sizeof(timer_stack),
|
||||
PRIORITY_MAIN - 1,
|
||||
CREATE_STACKTEST,
|
||||
timer_thread,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user