summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-20 15:38:56 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-20 15:38:56 +0200
commitd37e4eabc4248a16b15363e57ca33882999ad9b1 (patch)
tree95c20e551de0163d58ef23ea920774dac017270b /src/json
parent5c569d3df7f49e2727858cd76ff84457c0888d7f (diff)
downloadexchange-d37e4eabc4248a16b15363e57ca33882999ad9b1.tar.gz
exchange-d37e4eabc4248a16b15363e57ca33882999ad9b1.tar.bz2
exchange-d37e4eabc4248a16b15363e57ca33882999ad9b1.zip
-use nicer enum
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json_wire.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json/json_wire.c b/src/json/json_wire.c
index 929d5365..bd019a7d 100644
--- a/src/json/json_wire.c
+++ b/src/json/json_wire.c
@@ -222,7 +222,7 @@ cmp_country_code (const void *ptr1,
* @param iban the IBAN number to validate
* @return #GNUNET_YES if correctly formatted; #GNUNET_NO if not
*/
-static int
+static enum GNUNET_GenericReturnValue
validate_iban (const char *iban)
{
char cc[2];
@@ -331,7 +331,7 @@ validate_iban (const char *iban)
* #GNUNET_NO if @a account_url is a payto URI of a different type,
* #GNUNET_SYSERR if the IBAN (checksum) is incorrect or this is not a payto://-URI
*/
-static int
+static enum GNUNET_GenericReturnValue
validate_payto_iban (const char *account_url)
{
const char *iban;