fsprobe: call RXAFS_GetTime directly
[openafs.git] / src / viced / fsprobe.c
index 7d44b9f..c55036d 100644 (file)
@@ -63,7 +63,6 @@ main(int argc, char **argv)
     struct sockaddr_in host;
     afs_int32 code;
     struct hostent *hp;
-    char *hostname;
     char hnamebuf[200];
     struct timeval tv;
     int noAuth = 1;            /* Default is authenticated connections */
@@ -81,13 +80,11 @@ main(int argc, char **argv)
 #endif
     if (host.sin_addr.s_addr != -1) {
        strcpy(hnamebuf, av[0]);
-       hostname = hnamebuf;
     } else {
        hp = gethostbyname(av[0]);
        if (hp) {
            host.sin_family = hp->h_addrtype;
            memcpy((caddr_t) & host.sin_addr, hp->h_addr, hp->h_length);
-           hostname = hp->h_name;
        } else {
            printf("unknown server host %s\n", av[0]);
            exit(1);
@@ -98,7 +95,7 @@ main(int argc, char **argv)
        exit(1);
     }
 
-    code = ubik_Call(RXAFS_GetTime, cstruct, 0, &tv.tv_sec, &tv.tv_usec);
+    code = RXAFS_GetTime(cstruct->conns[0], (afs_uint32 *)&tv.tv_sec, (afs_uint32 *)&tv.tv_usec);
     if (!code)
        printf("AFS_GetTime on %s sec=%ld, usec=%ld\n", av[0], tv.tv_sec,
               (long int)tv.tv_usec);