Skip to content

Commit f0736e0

Browse files
jukkarnashif
authored andcommitted
net: http: service: Allow user to set service as static
Remove the "static" from HTTP service definition macro so that user is able to add it or leave it out if needed. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent c7989b5 commit f0736e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/net/http/service.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct http_service_desc {
8080

8181
#define __z_http_service_define(_name, _host, _port, _concurrent, _backlog, _detail, _res_begin, \
8282
_res_end, ...) \
83-
static const STRUCT_SECTION_ITERABLE(http_service_desc, _name) = { \
83+
const STRUCT_SECTION_ITERABLE(http_service_desc, _name) = { \
8484
.host = _host, \
8585
.port = (uint16_t *)(_port), \
8686
.detail = (void *)(_detail), \

0 commit comments

Comments
 (0)