summaryrefslogtreecommitdiffstats
path: root/src/appl/gss-sample/gss-server.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-06-07 15:17:31 -0400
committerGreg Hudson <ghudson@mit.edu>2013-06-07 15:19:37 -0400
commite51c089b745161dd6e1d64998e99d065fc22377e (patch)
tree5e792dd53ed48f3c5d0a0aa78c0ce8e777f385a2 /src/appl/gss-sample/gss-server.c
parent4f551a7ec126c52ee1f8fea4c3954015b70987bd (diff)
downloadkrb5-e51c089b745161dd6e1d64998e99d065fc22377e.tar.gz
krb5-e51c089b745161dd6e1d64998e99d065fc22377e.tar.xz
krb5-e51c089b745161dd6e1d64998e99d065fc22377e.zip
Fix various warnings
Diffstat (limited to 'src/appl/gss-sample/gss-server.c')
-rw-r--r--src/appl/gss-sample/gss-server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c
index ed78be58ca..3c116dec17 100644
--- a/src/appl/gss-sample/gss-server.c
+++ b/src/appl/gss-sample/gss-server.c
@@ -889,13 +889,13 @@ static OM_uint32
showLocalIdentity(OM_uint32 *minor, gss_name_t name)
{
OM_uint32 major;
- gss_buffer_desc localname;
+ gss_buffer_desc buf;
- major = gss_localname(minor, name, GSS_C_NO_OID, &localname);
+ major = gss_localname(minor, name, GSS_C_NO_OID, &buf);
if (major == GSS_S_COMPLETE)
- printf("localname: %-*s\n", (int)localname.length, localname.value);
+ printf("localname: %-*s\n", (int)buf.length, (char *)buf.value);
else if (major != GSS_S_UNAVAILABLE)
display_status("gss_localname", major, *minor);
- gss_release_buffer(minor, &localname);
+ gss_release_buffer(minor, &buf);
return major;
}