From: Klas Lindfors Date: Thu, 20 Sep 2012 09:02:32 +0000 (+0200) Subject: change ykp_free_ndef to return int X-Git-Tag: v1.8.0~20^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51698c9486732846e69008880246c054318be780;p=yubikey-personalization change ykp_free_ndef to return int --- diff --git a/ykpers.c b/ykpers.c index 6ff8086..2c5e6b6 100644 --- a/ykpers.c +++ b/ykpers.c @@ -381,7 +381,7 @@ YK_NDEF *ykp_alloc_ndef(void) return 0; } -void ykp_free_ndef(YK_NDEF *ndef) +int ykp_free_ndef(YK_NDEF *ndef) { if(ndef) { diff --git a/ykpers.h b/ykpers.h index a2c410b..9a142f0 100644 --- a/ykpers.h +++ b/ykpers.h @@ -68,7 +68,7 @@ int ykp_HMAC_key_from_hex(YKP_CONFIG *cfg, const char *hexkey); /* Functions for constructing the YK_NDEF struct before writing it to a neo */ YK_NDEF *ykp_alloc_ndef(void); -void ykp_free_ndef(YK_NDEF *ndef); +int ykp_free_ndef(YK_NDEF *ndef); int ykp_construct_ndef_uri(YK_NDEF *ndef, const char *uri); int ykp_construct_ndef_text(YK_NDEF *ndef, const char *text, const char *lang, bool isutf16); int ykp_set_ndef_access_code(YK_NDEF *ndef, unsigned char *access_code);