aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp-posix.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-08-11 18:46:51 +0000
committerWerner Koch <[email protected]>2016-08-11 19:32:55 +0000
commit0698324cde3e0cef7eeb6cfd1640c5eefdf13698 (patch)
tree36a20b69d270381daee74443a17a4108fb407090 /common/exechelp-posix.c
parentcommon: Remove compatibility code. (diff)
downloadgnupg-0698324cde3e0cef7eeb6cfd1640c5eefdf13698.tar.gz
gnupg-0698324cde3e0cef7eeb6cfd1640c5eefdf13698.zip
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 <[email protected]>
Diffstat (limited to 'common/exechelp-posix.c')
-rw-r--r--common/exechelp-posix.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c
index b1b56f30c..943f20aa5 100644
--- a/common/exechelp-posix.c
+++ b/common/exechelp-posix.c
@@ -36,9 +36,7 @@
#include <stdio.h>
#include <stdlib.h>
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
+#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <assert.h>