summaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-13 12:15:13 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-13 12:15:13 +0100
commit03d1a3650c9f47b1ace77f683f9a8cbf1bb52c9a (patch)
tree5087046e3a42162825efd488b31ddace0b036c30 /gnu-taler-error-codes
parentf1c18611d7b6ff9e80a087c9c9042cfdfd821a0a (diff)
update C logic
Diffstat (limited to 'gnu-taler-error-codes')
-rw-r--r--gnu-taler-error-codes/c.footer5
-rw-r--r--gnu-taler-error-codes/c.header2
-rw-r--r--gnu-taler-error-codes/h.header2
3 files changed, 4 insertions, 5 deletions
diff --git a/gnu-taler-error-codes/c.footer b/gnu-taler-error-codes/c.footer
index 163901f..3422d6c 100644
--- a/gnu-taler-error-codes/c.footer
+++ b/gnu-taler-error-codes/c.footer
@@ -46,7 +46,7 @@ TALER_ErrorCode_get_http_status (enum TALER_ErrorCode ec)
}
else
{
- return code_hint_pairs[mid].http_status;
+ return code_hint_pairs[mid].http_code;
}
}
return UINT_MAX;
@@ -61,9 +61,6 @@ TALER_ErrorCode_get_http_status_safe (enum TALER_ErrorCode ec)
hc = TALER_ErrorCode_get_http_status (ec);
if ( (0 == hc) ||
(UINT_MAX == hc) )
- {
- GNUNET_break (0);
return MHD_HTTP_INTERNAL_SERVER_ERROR;
- }
return hc;
}
diff --git a/gnu-taler-error-codes/c.header b/gnu-taler-error-codes/c.header
index fb37b22..0b85d06 100644
--- a/gnu-taler-error-codes/c.header
+++ b/gnu-taler-error-codes/c.header
@@ -46,7 +46,7 @@ struct ErrorCodeAndHint
/**
* The HTTP status code.
*/
- unsigned int http_status;
+ unsigned int http_code;
};
diff --git a/gnu-taler-error-codes/h.header b/gnu-taler-error-codes/h.header
index 522984f..652764f 100644
--- a/gnu-taler-error-codes/h.header
+++ b/gnu-taler-error-codes/h.header
@@ -36,6 +36,8 @@ extern "C" {
#endif
#endif
+#include <limits.h>
+
/**
* Taler error codes.