Skip to content

Commit 6495f4d

Browse files
committed
Declare read-only data const
1 parent 63cc0e9 commit 6495f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/netlog/netlog-conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int config_parse_netlog_remote_address(const char *unit,
3232

3333
r = socket_address_parse(&m->address, rvalue);
3434
if (r < 0) {
35-
struct addrinfo hints = {
35+
const struct addrinfo hints = {
3636
.ai_flags = AI_NUMERICSERV|AI_ADDRCONFIG,
3737
.ai_socktype = SOCK_DGRAM,
3838
.ai_family = socket_ipv6_is_supported() ? AF_UNSPEC : AF_INET,

0 commit comments

Comments
 (0)