Browse Source

[core] li_restricted_strtoint64()

(make public for reuse)
master
Glenn Strauss 1 year ago
parent
commit
e9309ae6e6
  1. 2
      src/request.c
  2. 2
      src/request.h

2
src/request.c

@ -376,7 +376,7 @@ static int http_request_header_char_invalid(request_st * const restrict r, const
}
static int64_t
int64_t
li_restricted_strtoint64 (const char *v, const uint32_t vlen, const char ** const err)
{
/* base 10 strtoll() parsing exactly vlen chars and requiring digits 0-9 */

2
src/request.h

@ -216,4 +216,6 @@ int http_request_parse_target(request_st *r, int scheme_port);
int http_request_host_normalize(buffer *b, int scheme_port);
int http_request_host_policy(buffer *b, unsigned int http_parseopts, int scheme_port);
int64_t li_restricted_strtoint64 (const char *v, const uint32_t vlen, const char ** const err);
#endif

Loading…
Cancel
Save