From 51698c9486732846e69008880246c054318be780 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Thu, 20 Sep 2012 11:02:32 +0200 Subject: [PATCH] change ykp_free_ndef to return int --- ykpers.c | 2 +- ykpers.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5