Whamcloud - gitweb
LU-14462 gss: fix support for namespace in lgss_keyring
[fs/lustre-release.git] / lustre / utils / gss / gss_util.c
index fa4838b..7b9a9ff 100644 (file)
 #include <errno.h>
 #include <stdio.h>
 #include <ctype.h>
-#include <sys/file.h>
-#include <signal.h>
 #include <string.h>
-#include <sys/types.h>
-#include <sys/time.h>
-#include <sys/stat.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
 #include <sys/param.h>
-#include <netdb.h>
-#include <fcntl.h>
 #include <gssapi/gssapi.h>
 #if defined(HAVE_KRB5) && !defined(GSS_C_NT_HOSTBASED_SERVICE)
 #include <gssapi/gssapi_generic.h>
 #include "err_util.h"
 #include "gssd.h"
 #ifdef HAVE_UNISTD_H
-#include <unistd.h>
+# include <unistd.h>
 #endif
 #include <stdlib.h>
 #ifdef HAVE_COM_ERR_H
-#include <com_err.h>
+# include <com_err.h>
 #endif
 #include "lsupport.h"
 
@@ -273,7 +264,7 @@ int gssd_acquire_cred(char *server_name, gss_cred_id_t *cred,
                                target_name, &pbuf, NULL);
                if (ignore_maj_stat == GSS_S_COMPLETE) {
                        printerr(0, "Unable to obtain credentials for '%.*s'\n",
-                                pbuf.length, pbuf.value);
+                                (int) pbuf.length, (char *) pbuf.value);
                        ignore_maj_stat = gss_release_buffer(&ignore_min_stat,
                                                             &pbuf);
                }