afs: Properly type afs_osi_suser cred arg
[openafs.git] / src / afs / OBSD / osi_misc.c
index 4449ca4..5a7778a 100644 (file)
@@ -46,8 +46,6 @@ such damages.
 #include <afsconfig.h>
 #include "afs/param.h"
 
-RCSID
-    ("$Header$");
 
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
 #include "afs/afsincludes.h"   /* Afs-based standard headers */
@@ -67,7 +65,7 @@ RCSID
  */
 
 int
-afs_osi_suser(void *credp)
+afs_osi_suser(afs_ucred_t *credp)
 {
 #ifdef AFS_OBSD35_ENV
     return (suser_ucred((struct ucred *)credp) ? 0 : 1);
@@ -137,34 +135,6 @@ osi_obsd_Free(void *p, size_t asize)
 }
 #endif
 
-#if 0 /* XXX */
-/* I speculate this usage may be more correct than definitions
- * in afs_osi_alloc.c, which I discarded successfully for FreeBSD 7+,
- * and am trying to discard for NetBSD 4.x, but until tested, I'm
- * not rocking the boat.  Matt.
- */
-   
-void
-osi_FreeLargeSpace(void *p)
-{
-  osi_obsd_Free(p, 0);
-}
-
-void
-osi_FreeSmallSpace(void *p)
-{
-  osi_obsd_Free(p, 0);
-}
-
-void *
-osi_AllocLargeSpace(size_t size)
-{
-  AFS_ASSERT_GLOCK();
-  AFS_STATCNT(osi_AllocLargeSpace);
-  return (osi_obsd_Alloc(size, 1));
-}
-#endif
-
 int
 afs_syscall_icreate(dev, near_inode, param1, param2, param3, param4, retval)
      long *retval;