|
Zbigniew Jędrzejewski-Szmek |
5d6eed |
From 79a5d862a7abe903f456a75d6d1ca3c11adfa379 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
From: Mike Gilbert <floppymaster@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
Date: Tue, 10 Jan 2017 02:39:05 -0500
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
Subject: [PATCH] build-sys: add check for gperf lookup function signature
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
(#5055)
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
gperf-3.1 generates lookup functions that take a size_t length
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
parameter instead of unsigned int. Test for this at configure time.
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
Fixes: https://github.com/systemd/systemd/issues/5039
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
(cherry picked from commit c9f7b4d356a453a01aa77a6bb74ca7ef49732c08)
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
configure.ac | 22 ++++++++++++++++++++++
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/basic/af-list.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/basic/arphrd-list.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/basic/cap-list.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/basic/errno-list.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/core/load-fragment.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/journal/journald-server.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/login/logind.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/network/networkd-conf.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/network/networkd-netdev.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/network/networkd-network.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/nspawn/nspawn-settings.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/resolve/dns-type.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/resolve/resolved-conf.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/test/test-af-list.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/test/test-arphrd-list.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/timesync/timesyncd-conf.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/udev/net/link-config.h | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
src/udev/udev-builtin-keyboard.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
19 files changed, 40 insertions(+), 18 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/configure.ac b/configure.ac
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 1928e65bde..5c639e32d4 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/configure.ac
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/configure.ac
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -258,6 +258,28 @@ AC_CHECK_SIZEOF(rlim_t,,[
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include <sys/resource.h>
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
])
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+GPERF_TEST="$(echo foo,bar | ${GPERF} -L ANSI-C)"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+AC_COMPILE_IFELSE(
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ [AC_LANG_PROGRAM([
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ #include <string.h>
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ const char * in_word_set(const char *, size_t);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ $GPERF_TEST]
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ )],
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ [GPERF_LEN_TYPE=size_t],
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ [AC_COMPILE_IFELSE(
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ [AC_LANG_PROGRAM([
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ #include <string.h>
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ const char * in_word_set(const char *, unsigned);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ $GPERF_TEST]
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ )],
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ [GPERF_LEN_TYPE=unsigned],
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ [AC_MSG_ERROR([** unable to determine gperf len type])]
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ )]
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+)
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+AC_DEFINE_UNQUOTED([GPERF_LEN_TYPE], [$GPERF_LEN_TYPE], [gperf len type])
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
# ------------------------------------------------------------------------------
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
# we use python to build the man page index
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
have_python=no
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/basic/af-list.c b/src/basic/af-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 3fac9c508b..4b291d177b 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/basic/af-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/basic/af-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -23,7 +23,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "af-list.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "macro.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-static const struct af_name* lookup_af(register const char *str, register unsigned int len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "af-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "af-to-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/basic/arphrd-list.c b/src/basic/arphrd-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 6792d1ee3f..2d598dc66f 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/basic/arphrd-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/basic/arphrd-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -23,7 +23,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "arphrd-list.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "macro.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "arphrd-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "arphrd-to-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/basic/cap-list.c b/src/basic/cap-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 3e773a06f5..d68cc78d05 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/basic/cap-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/basic/cap-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -26,7 +26,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "parse-util.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "util.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+static const struct capability_name* lookup_capability(register const char *str, register GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "cap-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "cap-to-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/basic/errno-list.c b/src/basic/errno-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 31b66bad5e..c6a01eec8b 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/basic/errno-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/basic/errno-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -23,7 +23,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "macro.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
static const struct errno_name* lookup_errno(register const char *str,
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
- register unsigned int len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+ register GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "errno-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "errno-to-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/core/load-fragment.h b/src/core/load-fragment.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 1cff815a50..e78219786a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/core/load-fragment.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/core/load-fragment.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -119,7 +119,7 @@ int config_parse_user_group_strv(const char *unit, const char *filename, unsigne
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_restrict_namespaces(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
/* gperf prototypes */
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
extern const char load_fragment_gperf_nulstr[];
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
typedef enum Disabled {
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index de1c48f805..716e758b7c 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/journal/journald-server.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/journal/journald-server.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -179,7 +179,7 @@ void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigne
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_(3,0) _sentinel_;
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
/* gperf lookup function */
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* journald_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_storage(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/login/logind.h b/src/login/logind.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 086fa1eeb5..7556ee2e48 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/login/logind.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/login/logind.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -182,7 +182,7 @@ int manager_unit_is_active(Manager *manager, const char *unit);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int manager_job_is_active(Manager *manager, const char *path);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
/* gperf lookup function */
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* logind_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int manager_set_lid_switch_ignore(Manager *m, usec_t until);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/network/networkd-conf.h b/src/network/networkd-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index c7bfb42a72..00ddb7672a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/network/networkd-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/network/networkd-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -23,7 +23,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int manager_parse_config_file(Manager *m);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_duid_type(
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
const char *unit,
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/network/networkd-netdev.h b/src/network/networkd-netdev.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 70ff947b99..37c7431213 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/network/networkd-netdev.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/network/networkd-netdev.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -175,7 +175,7 @@ NetDevKind netdev_kind_from_string(const char *d) _pure_;
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_netdev_kind(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
/* gperf */
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
/* Macros which append INTERFACE= to the message */
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 11ff34b5b5..e39127b7b8 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/network/networkd-network.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/network/networkd-network.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -236,7 +236,7 @@ int config_parse_dhcp_route_table(const char *unit, const char *filename, unsign
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
/* Legacy IPv4LL support */
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_ipv4ll(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
extern const sd_bus_vtable network_vtable[];
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/nspawn/nspawn-settings.h b/src/nspawn/nspawn-settings.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 231e6d7266..4ae34f8e28 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/nspawn/nspawn-settings.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/nspawn/nspawn-settings.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -103,7 +103,7 @@ bool settings_private_network(Settings *s);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
DEFINE_TRIVIAL_CLEANUP_FUNC(Settings*, settings_free);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_capability(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_id128(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/resolve/dns-type.c b/src/resolve/dns-type.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index aaf5ed62c1..d89ae28dcd 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/resolve/dns-type.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/resolve/dns-type.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -29,7 +29,7 @@ typedef const struct {
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
} dns_type;
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
static const struct dns_type_name *
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-lookup_dns_type (register const char *str, register unsigned int len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+lookup_dns_type (register const char *str, register GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "dns_type-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "dns_type-to-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/resolve/resolved-conf.h b/src/resolve/resolved-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index fc425a36b2..8184d6cadf 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/resolve/resolved-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/resolve/resolved-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -41,7 +41,7 @@ int manager_parse_search_domains_and_warn(Manager *m, const char *string);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index aeaa0929b1..e2479133de 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/test/test-af-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/test/test-af-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -24,7 +24,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "string-util.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "util.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-static const struct af_name* lookup_af(register const char *str, register unsigned int len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "af-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "af-list.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/test/test-arphrd-list.c b/src/test/test-arphrd-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index f3989ad201..8f4f342faa 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/test/test-arphrd-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/test/test-arphrd-list.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -24,7 +24,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "string-util.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "util.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "arphrd-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "arphrd-list.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/timesync/timesyncd-conf.h b/src/timesync/timesyncd-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index cba0724b1b..0280697e9c 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/timesync/timesyncd-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/timesync/timesyncd-conf.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -22,7 +22,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "conf-parser.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "timesyncd-manager.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int manager_parse_server_string(Manager *m, ServerType type, const char *string);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/udev/net/link-config.h b/src/udev/net/link-config.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index 91cc0357c4..b0d8ceb76a 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/udev/net/link-config.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/udev/net/link-config.h
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -93,7 +93,7 @@ const char *mac_policy_to_string(MACPolicy p) _const_;
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
MACPolicy mac_policy_from_string(const char *p) _pure_;
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
/* gperf lookup function */
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, unsigned length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_mac_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
int config_parse_name_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
index aa10beafb0..09024116f2 100644
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
--- a/src/udev/udev-builtin-keyboard.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+++ b/src/udev/udev-builtin-keyboard.c
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
@@ -29,7 +29,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "string-util.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "udev.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
-static const struct key *keyboard_lookup_key(const char *str, unsigned len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
+static const struct key *keyboard_lookup_key(const char *str, GPERF_LEN_TYPE len);
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
#include "keyboard-keys-from-name.h"
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
|
|
Zbigniew Jędrzejewski-Szmek |
b6b354 |
static int install_force_release(struct udev_device *dev, const unsigned *release, unsigned release_count) {
|