mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
getdata: split busy function to segments used via function pointer
When it is known IPv4 is in use there is no need to spend time with if statements checking whether IPv6 is in use. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
5b8ad97611
commit
97c6f0292f
3 changed files with 73 additions and 24 deletions
|
|
@ -204,11 +204,23 @@ void copy_ipaddr(union ipaddr_t *restrict dst,
|
|||
const union ipaddr_t *restrict src);
|
||||
const char *ntop_ipaddr(const union ipaddr_t *ip);
|
||||
double get_range_size(const struct range_t *r);
|
||||
int xstrstr(const char *__restrict str)
|
||||
int (*xstrstr)(const char *__restrict str);
|
||||
int xstrstr_init(const char *__restrict str)
|
||||
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
|
||||
__attribute__ ((__hot__))
|
||||
# endif
|
||||
;
|
||||
int xstrstr_v4(const char *__restrict str)
|
||||
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
|
||||
__attribute__ ((__hot__))
|
||||
# endif
|
||||
;
|
||||
int xstrstr_v6(const char *__restrict str)
|
||||
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
|
||||
__attribute__ ((__hot__))
|
||||
# endif
|
||||
;
|
||||
|
||||
double strtod_or_err(const char *__restrict str,
|
||||
const char *__restrict errmesg);
|
||||
void print_version(void) __attribute__ ((noreturn));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue