Fix minor build errors, and rename the dumpId argument of butc's
[openafs.git] / src / fsprobe / fsprobe_callback.c
index 4d2e97b..2620af2 100644 (file)
@@ -21,8 +21,8 @@
  *     need to be ``visible'' to anyone else.
  *------------------------------------------------------------------------*/
 
-#include <afs/param.h>
 #include <afsconfig.h>
+#include <afs/param.h>
 
 RCSID("$Header$");
 
@@ -210,7 +210,7 @@ afs_int32 SRXAFSCB_Probe(rxcall)
 
 
 /*------------------------------------------------------------------------
- * SRXAFSCB_GetCE
+ * SRXAFSCB_GetCE64
  *
  * Description:
  *     Respond minimally to a request for returning the contents of
@@ -230,6 +230,29 @@ afs_int32 SRXAFSCB_Probe(rxcall)
  *     As advertised.
  *------------------------------------------------------------------------*/
 
+afs_int32 SRXAFSCB_GetCE64(rxcall)
+    struct rx_call *rxcall;
+
+{ /*SRXAFSCB_GetCE64*/
+
+#if XSTAT_FS_CALLBACK_VERBOSE
+    static char rn[] = "SRXAFSCB_GetCE64";             /*Routine name*/
+    char hostName[256];                                /*Host name buffer*/
+    char *hostNameResult;                      /*Ptr to static*/
+
+    if (rxcall != (struct rx_call *)0) {
+       hostNameResult =
+           hostutil_GetNameByINet((afs_int32)(rxcall->conn->peer->host));
+       strcpy(hostName, hostNameResult);
+       fprintf(stderr, "[%s:%s] Called from host %s, port %d\n",
+               mn, rn, hostName, rxcall->conn->peer->port);
+    } /*Valid rxcall param*/
+#endif /* XSTAT_FS_CALLBACK_VERBOSE */
+
+    return(0);
+
+} /*SRXAFSCB_GetCE64*/
+
 afs_int32 SRXAFSCB_GetCE(rxcall)
     struct rx_call *rxcall;
 
@@ -641,7 +664,7 @@ int SRXAFSCB_GetCellServDB(
     struct rx_call *a_call,
     afs_int32 a_index,
     char **a_name,
-    afs_int32 *a_hosts)
+    serverList *a_hosts)
 {
     return RXGEN_OPCODE;
 }