summaryrefslogtreecommitdiff
path: root/samples/net/irc_bot/src/irc-bot.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/net/irc_bot/src/irc-bot.c')
-rw-r--r--samples/net/irc_bot/src/irc-bot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/net/irc_bot/src/irc-bot.c b/samples/net/irc_bot/src/irc-bot.c
index d3c668eb9..4c7246931 100644
--- a/samples/net/irc_bot/src/irc-bot.c
+++ b/samples/net/irc_bot/src/irc-bot.c
@@ -146,12 +146,12 @@ transmit(struct net_context *ctx, char buffer[], size_t len)
{
struct net_buf *send_buf;
- send_buf = net_nbuf_get_tx(ctx);
+ send_buf = net_nbuf_get_tx(ctx, K_FOREVER);
if (!send_buf) {
return -ENOMEM;
}
- if (!net_nbuf_append(send_buf, len, buffer)) {
+ if (!net_nbuf_append(send_buf, len, buffer, K_FOREVER)) {
return -EINVAL;
}
@@ -312,7 +312,7 @@ on_context_recv(struct net_context *ctx, struct net_buf *buf,
if (cmd_len + len > sizeof(cmd_buf)) {
/* overrun cmd_buf - bail out */
- NET_ERR("CMD BUFFER OVERRUN!! %lu > %lu",
+ NET_ERR("CMD BUFFER OVERRUN!! %zu > %zu",
cmd_len + len,
sizeof(cmd_buf));
break;