mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
added missing symbols for parsing rs232baudrate
This commit is contained in:
parent
8045e57b81
commit
05d4c14188
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user