banish-ushort-20040519
authorJim Rees <rees@umich.edu>
Wed, 19 May 2004 21:31:18 +0000 (21:31 +0000)
committerJim Rees <rees@umich.edu>
Wed, 19 May 2004 21:31:18 +0000 (21:31 +0000)
Change ushort to afs_uint16. ushort is a SysV thing, not present in FreeBSD.

src/afs/afs.h
src/afs/afs_prototypes.h
src/afs/afs_server.c

index 355a293..49f2c40 100644 (file)
@@ -633,8 +633,8 @@ struct vcache {
        afs_uint32 Date;
        afs_uint32 Owner;
        afs_uint32 Group;
-       ushort Mode;            /* XXXX Should be afs_int32 XXXX */
-       ushort LinkCount;
+       afs_uint16 Mode;        /* XXXX Should be afs_int32 XXXX */
+       afs_uint16 LinkCount;
        /* vnode type is in v.v_type */
     } m;
     afs_rwlock_t lock;         /* The lock on the vcache contents. */
index 43aa282..c4875b6 100644 (file)
@@ -685,7 +685,7 @@ extern struct srvAddr *afs_srvAddrs[NSERVERS];
 extern struct server *afs_servers[NSERVERS];
 extern int afs_totalServers;
 extern struct server *afs_setTimeHost;
-extern struct server *afs_FindServer(afs_int32 aserver, ushort aport,
+extern struct server *afs_FindServer(afs_int32 aserver, afs_uint16 aport,
                                     afsUUID * uuidp, afs_int32 locktype);
 extern struct server *afs_GetServer(afs_uint32 * aserver, afs_int32 nservers,
                                    afs_int32 acell, u_short aport,
index 6643c1e..99d64d3 100644 (file)
@@ -714,7 +714,7 @@ afs_CheckServers(int adown, struct cell *acellp)
 
 /* find a server structure given the host address */
 struct server *
-afs_FindServer(afs_int32 aserver, ushort aport, afsUUID * uuidp,
+afs_FindServer(afs_int32 aserver, afs_uint16 aport, afsUUID * uuidp,
               afs_int32 locktype)
 {
     struct server *ts;