common: New function string_to_u64.
authorWerner Koch <wk@gnupg.org>
Thu, 11 Aug 2016 18:46:51 +0000 (20:46 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 11 Aug 2016 19:32:55 +0000 (21:32 +0200)
commit0698324cde3e0cef7eeb6cfd1640c5eefdf13698
tree36a20b69d270381daee74443a17a4108fb407090
parent72fa314b71e4ce8780f59b16d32cabf5d4bd5451
common: New function string_to_u64.

* common/stringhelp.c (string_to_u64): New.
* dirmngr/http.c (longcounter_t): Remove.
(struct cookie_s): Change content_length to uint64_t.
(parse_response): Use string_to_u64.
--

Meanwhile we allow some C99 features including stdint.h.  Thus we can
simplify things now.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/exechelp-posix.c
common/stringhelp.c
common/stringhelp.h
dirmngr/http.c