mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Reorder statements: printf clobbers errno value
This commit is contained in:
parent
72d3a733a8
commit
1593229612
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,6 @@ int client_main(int argc, char *argv[])
|
|||
printf("client: %d. Sending %d bytes\n", offset, SENDSIZE);
|
||||
nbytes = sendto(sockfd, outbuf, SENDSIZE, 0,
|
||||
(struct sockaddr *)&server, addrlen);
|
||||
printf("client: %d. Sent %d bytes\n", offset, nbytes);
|
||||
|
||||
if (nbytes < 0)
|
||||
{
|
||||
|
|
@ -140,6 +139,8 @@ int client_main(int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
printf("client: %d. Sent %d bytes\n", offset, nbytes);
|
||||
|
||||
/* Now, sleep a bit. No packets should be dropped due to overrunning
|
||||
* the server.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue