Skip to content

Commit

Permalink
tcp_example error fix (signed /unsigned mismatch) (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
horverno authored and Jason Mobarak committed Jan 16, 2020
1 parent 7899270 commit 8ed57ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/example/tcp_example/tcp_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ void heartbeat_callback(u16 sender_id, u8 len, u8 msg[], void *context)
fprintf(stdout, "%s\n", __FUNCTION__);
}

u32 socket_read(u8 *buff, u32 n, void *context)
s32 socket_read(u8 *buff, u32 n, void *context)
{
(void)context;
u32 result;
s32 result;

result = read(socket_desc, buff, n);
return result;
Expand Down

0 comments on commit 8ed57ac

Please sign in to comment.