Skip to content

samples: http_server: Fix warning about integer name #93468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samples/net/sockets/http_server/src/ws.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ int ws_echo_setup(int ws_socket, struct http_request_ctx *request_ctx, void *use
K_NO_WAIT);

if (IS_ENABLED(CONFIG_THREAD_NAME)) {
#define MAX_NAME_LEN sizeof("ws[xx]")
#define MAX_NAME_LEN (sizeof("ws[]") + 10)
char name[MAX_NAME_LEN];

snprintk(name, sizeof(name), "ws[%d]", slot);
Expand Down