More fixes for -Werror (GCC 4.6 catches more stuff)
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
char *
|
||||
gssapi_err(OM_uint32 maj_stat, OM_uint32 min_stat, gss_OID mech)
|
||||
{
|
||||
OM_uint32 disp_min_stat, disp_maj_stat;
|
||||
OM_uint32 disp_min_stat;
|
||||
gss_buffer_desc maj_error_message;
|
||||
gss_buffer_desc min_error_message;
|
||||
OM_uint32 msg_ctx = 0;
|
||||
@@ -50,12 +50,10 @@ gssapi_err(OM_uint32 maj_stat, OM_uint32 min_stat, gss_OID mech)
|
||||
min_error_message.length = 0;
|
||||
min_error_message.value = NULL;
|
||||
|
||||
disp_maj_stat = gss_display_status(&disp_min_stat, maj_stat,
|
||||
GSS_C_GSS_CODE,
|
||||
mech, &msg_ctx, &maj_error_message);
|
||||
disp_maj_stat = gss_display_status(&disp_min_stat, min_stat,
|
||||
GSS_C_MECH_CODE,
|
||||
mech, &msg_ctx, &min_error_message);
|
||||
(void) gss_display_status(&disp_min_stat, maj_stat, GSS_C_GSS_CODE,
|
||||
mech, &msg_ctx, &maj_error_message);
|
||||
(void) gss_display_status(&disp_min_stat, min_stat, GSS_C_MECH_CODE,
|
||||
mech, &msg_ctx, &min_error_message);
|
||||
if (asprintf(&ret, "gss-code: %lu %.*s -- mech-code: %lu %.*s",
|
||||
(unsigned long)maj_stat,
|
||||
(int)maj_error_message.length,
|
||||
|
Reference in New Issue
Block a user