Skip to content

Commit

Permalink
__func__ -> __FUNCTION__ in disp_status.c
Browse files Browse the repository at this point in the history
For MSVC compatibility

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>

(cherry picked from commit 0552f29)

ticket: 7208
version_fixed: 1.10.3
status: resolved
  • Loading branch information
Kevin Wasserman authored and tlyu committed Jul 23, 2012
1 parent 316cf5a commit 8e36838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/gssapi/krb5/disp_status.c
Expand Up @@ -48,7 +48,7 @@ char *get_error_message(OM_uint32 minor_code)
gsserrmap *p = k5_getspecific(K5_KEY_GSS_KRB5_ERROR_MESSAGE);
char *msg = NULL;
#ifdef DEBUG
fprintf(stderr, "%s(%lu, p=%p)", __func__, (unsigned long) minor_code,
fprintf(stderr, "%s(%lu, p=%p)", __FUNCTION__, (unsigned long) minor_code,
(void *) p);
#endif
if (p) {
Expand All @@ -74,7 +74,7 @@ static int save_error_string_nocopy(OM_uint32 minor_code, char *msg)
int ret;

#ifdef DEBUG
fprintf(stderr, "%s(%lu, %s)", __func__, (unsigned long) minor_code, msg);
fprintf(stderr, "%s(%lu, %s)", __FUNCTION__, (unsigned long) minor_code, msg);
#endif
p = k5_getspecific(K5_KEY_GSS_KRB5_ERROR_MESSAGE);
if (!p) {
Expand Down Expand Up @@ -131,12 +131,12 @@ void krb5_gss_save_error_info(OM_uint32 minor_code, krb5_context ctx)
char *s;

#ifdef DEBUG
fprintf(stderr, "%s(%lu, ctx=%p)\n", __func__,
fprintf(stderr, "%s(%lu, ctx=%p)\n", __FUNCTION__,
(unsigned long) minor_code, (void *)ctx);
#endif
s = (char *)krb5_get_error_message(ctx, (krb5_error_code)minor_code);
#ifdef DEBUG
fprintf(stderr, "%s(%lu, ctx=%p) saving: %s\n", __func__,
fprintf(stderr, "%s(%lu, ctx=%p) saving: %s\n", __FUNCTION__,
(unsigned long) minor_code, (void *)ctx, s);
#endif
save_error_string(minor_code, s);
Expand Down

0 comments on commit 8e36838

Please sign in to comment.