summaryrefslogtreecommitdiff
path: root/src/core/load-fragment.h
diff options
context:
space:
mode:
authorMike Gilbert <floppymaster@gmail.com>2017-01-10 02:39:05 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-06 16:39:36 -0400
commit3384b776817808f01979ce192603d0c901391fd4 (patch)
tree941b7dda05e4a3d4f5d1bfb52122ee0d16ebda05 /src/core/load-fragment.h
parent6a2346a433c6ba1e372d270a4b3a5c62f431038a (diff)
build-sys: add check for gperf lookup function signature (#5055)
gperf-3.1 generates lookup functions that take a size_t length parameter instead of unsigned int. Test for this at configure time. Fixes: https://github.com/systemd/systemd/issues/5039
Diffstat (limited to 'src/core/load-fragment.h')
-rw-r--r--src/core/load-fragment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/load-fragment.h b/src/core/load-fragment.h
index c05f205c37..ede6b1f735 100644
--- a/src/core/load-fragment.h
+++ b/src/core/load-fragment.h
@@ -118,7 +118,7 @@ int config_parse_user_group(const char *unit, const char *filename, unsigned lin
int config_parse_user_group_strv(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);
/* gperf prototypes */
-const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length);
+const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
extern const char load_fragment_gperf_nulstr[];
typedef enum Disabled {