From: Susant Sahani Date: Tue, 25 Apr 2017 13:11:50 +0000 (+0530) Subject: config parser: Introduce config_parse_uint8 X-Git-Tag: chiark/234.4-1+devuan1.1+iwj1~153 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=de8f3aa7dee9dbde1d44a62322ae3574db7cd6b0 config parser: Introduce config_parse_uint8 --- 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