summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2017-04-25 18:41:50 +0530
committerSven Eden <yamakuzure@gmx.net>2017-07-25 09:46:52 +0200
commitde8f3aa7dee9dbde1d44a62322ae3574db7cd6b0 (patch)
treeff9d4dddbf1cc534f8fc6fcf4a7c7ba8a91d155b /src
parentbd7bf6b86506e336cff7cc6c391c94306049782d (diff)
config parser: Introduce config_parse_uint8
Diffstat (limited to 'src')
-rw-r--r--src/shared/conf-parser.c1
-rw-r--r--src/shared/conf-parser.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index 0f6bf85b0..438f1a02f 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -508,6 +508,7 @@ int config_parse_many(
DEFINE_PARSER(int, int, safe_atoi);
DEFINE_PARSER(long, long, safe_atoli);
#if 0 /// UNNEEDED by elogind
+DEFINE_PARSER(uint8, uint8_t, safe_atou8);
DEFINE_PARSER(uint16, uint16_t, safe_atou16);
DEFINE_PARSER(uint32, uint32_t, safe_atou32);
#endif // 0
diff --git a/src/shared/conf-parser.h b/src/shared/conf-parser.h
index 76d602322..c9d0e7027 100644
--- a/src/shared/conf-parser.h
+++ b/src/shared/conf-parser.h
@@ -122,6 +122,7 @@ int config_parse_int(const char *unit, const char *filename, unsigned line, cons
int config_parse_unsigned(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);
int config_parse_long(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);
#if 0 /// UNNEEDED by elogind
+int config_parse_uint8(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);
int config_parse_uint16(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);
int config_parse_uint32(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);
#endif // 0