From 05d4c141880ee95e471eb826dd6d6801902e6dac Mon Sep 17 00:00:00 2001 From: gardners Date: Fri, 26 Apr 2013 15:33:09 +0930 Subject: [PATCH] added missing symbols for parsing rs232baudrate --- conf_schema.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/conf_schema.c b/conf_schema.c index a3b2c59c..21403fe6 100644 --- a/conf_schema.c +++ b/conf_schema.c @@ -281,6 +281,20 @@ int cf_opt_int32_rs232baudrate(int32_t *intp, const char *text) } } +int cf_fmt_int32_rs232baudrate(const char **textp, const int32_t *intp) +{ + char buf[12]; + sprintf(buf, "%d", *intp); + *textp = str_edup(buf); + return CFOK; +} + +int cf_cmp_int32_rs232baudrate(const int32_t *a, const int32_t *b) +{ + return *a < *b ? -1 : *a > *b ? 1 : 0; +} + + static int cf_fmt_int32(const char **textp, const int32_t *intp) { char buf[12];