Skip to content

Commit

Permalink
sys/net/telnet: align API with stdio API
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Feb 10, 2024
1 parent c65dd56 commit 41ce809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/include/net/telnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int telnet_server_start(void);
*
* @return 0 on success, error otherwise
*/
int telnet_server_write(const void* buffer, size_t len);
ssize_t telnet_server_write(const void* buffer, size_t len);

/**
* @brief Read data from the telnet client, will block until data is available.
Expand Down
2 changes: 1 addition & 1 deletion sys/net/application_layer/telnet/telnet_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ static void *telnet_thread(void *arg)
return NULL;
}

int telnet_server_write(const void* buffer, size_t len)
ssize_t telnet_server_write(const void* buffer, size_t len)
{
if (connected) {
int res = _write_buffer(buffer, len);
Expand Down

0 comments on commit 41ce809

Please sign in to comment.