summaryrefslogtreecommitdiffstats
path: root/src/shared/ip-protocol-list.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-05-17 08:54:00 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-06-19 16:28:28 +0200
commitbfd5a0687fcc65e5617d5bab69ff653393f23e70 (patch)
tree10f216d7a6ebdd984df003259c5b84fe139a91bd /src/shared/ip-protocol-list.c
parentFix confusion between killer and prey (diff)
downloadsystemd-bfd5a0687fcc65e5617d5bab69ff653393f23e70.tar.xz
systemd-bfd5a0687fcc65e5617d5bab69ff653393f23e70.zip
various: move const ptr indicator to return value
Diffstat (limited to 'src/shared/ip-protocol-list.c')
-rw-r--r--src/shared/ip-protocol-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/ip-protocol-list.c b/src/shared/ip-protocol-list.c
index 14155b679a..923d60abba 100644
--- a/src/shared/ip-protocol-list.c
+++ b/src/shared/ip-protocol-list.c
@@ -14,7 +14,7 @@ static const struct ip_protocol_name* lookup_ip_protocol(register const char *st
#include "ip-protocol-from-name.h"
#include "ip-protocol-to-name.h"
-const char *ip_protocol_to_name(int id) {
+const char* ip_protocol_to_name(int id) {
if (id < 0)
return NULL;
@@ -73,7 +73,7 @@ int parse_ip_protocol_full(const char *s, bool relaxed) {
return p;
}
-const char *ip_protocol_to_tcp_udp(int id) {
+const char* ip_protocol_to_tcp_udp(int id) {
return IN_SET(id, IPPROTO_TCP, IPPROTO_UDP) ?
ip_protocol_to_name(id) : NULL;
}