various: move const ptr indicator to return value

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-06-19 16:28:28 +02:00
parent cd2fb04960
commit bfd5a0687f
141 changed files with 272 additions and 272 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ static const struct af_name* lookup_af(register const char *str, register GPERF_
#include "af-from-name.h"
#include "af-to-name.h"
const char *af_to_name(int id) {
const char* af_to_name(int id) {
if (id <= 0)
return NULL;
@@ -39,7 +39,7 @@ int af_max(void) {
return ELEMENTSOF(af_names);
}
const char *af_to_ipv4_ipv6(int id) {
const char* af_to_ipv4_ipv6(int id) {
/* Pretty often we want to map the address family to the typically used protocol name for IPv4 +
* IPv6. Let's add special helpers for that. */
return id == AF_INET ? "ipv4" :