aboutsummaryrefslogtreecommitdiff
path: root/gnu-taler-error-codes/c.footer
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/c.footer
parentf1c18611d7b6ff9e80a087c9c9042cfdfd821a0a (diff)
downloadgana-03d1a3650c9f47b1ace77f683f9a8cbf1bb52c9a.tar.gz
gana-03d1a3650c9f47b1ace77f683f9a8cbf1bb52c9a.zip
update C logic
Diffstat (limited to 'gnu-taler-error-codes/c.footer')
-rw-r--r--gnu-taler-error-codes/c.footer5
1 files changed, 1 insertions, 4 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)
46 } 46 }
47 else 47 else
48 { 48 {
49 return code_hint_pairs[mid].http_status; 49 return code_hint_pairs[mid].http_code;
50 } 50 }
51 } 51 }
52 return UINT_MAX; 52 return UINT_MAX;
@@ -61,9 +61,6 @@ TALER_ErrorCode_get_http_status_safe (enum TALER_ErrorCode ec)
61 hc = TALER_ErrorCode_get_http_status (ec); 61 hc = TALER_ErrorCode_get_http_status (ec);
62 if ( (0 == hc) || 62 if ( (0 == hc) ||
63 (UINT_MAX == hc) ) 63 (UINT_MAX == hc) )
64 {
65 GNUNET_break (0);
66 return MHD_HTTP_INTERNAL_SERVER_ERROR; 64 return MHD_HTTP_INTERNAL_SERVER_ERROR;
67 }
68 return hc; 65 return hc;
69} 66}