From: Klas Lindfors Date: Wed, 19 Sep 2012 12:26:18 +0000 (+0200) Subject: remove ignored const on errno_location functions X-Git-Tag: v1.8.0~31 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93379479571361e9d3def210dd1bd156b96352dc;p=yubikey-personalization remove ignored const on errno_location functions fixes #11 --- diff --git a/ykcore/ykcore.c b/ykcore/ykcore.c index 49dc728..a06a894 100644 --- a/ykcore/ykcore.c +++ b/ykcore/ykcore.c @@ -318,7 +318,7 @@ int yk_challenge_response(YK_KEY *yk, uint8_t yk_cmd, int may_block, return 1; } -int * const _yk_errno_location(void) +int * _yk_errno_location(void) { static int tsd_init = 0; static int nothread_errno = 0; diff --git a/ykcore/ykcore.h b/ykcore/ykcore.h index 94ad961..776d30b 100644 --- a/ykcore/ykcore.h +++ b/ykcore/ykcore.h @@ -128,7 +128,7 @@ extern int yk_force_key_update(YK_KEY *yk); * Error handling fuctions * ****/ -extern int * const _yk_errno_location(void); +extern int * _yk_errno_location(void); #define yk_errno (*_yk_errno_location()) const char *yk_strerror(int errnum); /* The following function is only useful if yk_errno == YK_EUSBERR and diff --git a/ykpers.c b/ykpers.c index 9676c43..432ca75 100644 --- a/ykpers.c +++ b/ykpers.c @@ -1006,7 +1006,7 @@ int ykp_config_num(YKP_CONFIG *cfg) return 0; } -int * const _ykp_errno_location(void) +int * _ykp_errno_location(void) { static int tsd_init = 0; static int nothread_errno = 0; diff --git a/ykpers.h b/ykpers.h index 4d98ddc..4c67da8 100644 --- a/ykpers.h +++ b/ykpers.h @@ -126,7 +126,7 @@ YK_CONFIG *ykp_core_config(YKP_CONFIG *cfg); int ykp_command(YKP_CONFIG *cfg); int ykp_config_num(YKP_CONFIG *cfg); -extern int * const _ykp_errno_location(void); +extern int * _ykp_errno_location(void); #define ykp_errno (*_ykp_errno_location()) const char *ykp_strerror(int errnum);