LICENSE IPL10
need to verify this for all platforms at the same time; since the function
is portable. should be const anyway; we don't want to change it.
return rv;
}
#elif defined(AFS_LINUX22_ENV)
-struct AFS_UCRED *
+const struct AFS_UCRED *
afs_osi_proc2cred(AFS_PROC * pr)
{
struct AFS_UCRED *rv = NULL;
extern int afs_osi_suser(void *credp);
extern void afs_osi_TraverseProcTable(void);
#if defined(KERNEL) && !defined(UKERNEL) && defined(AFS_PROC)
-extern struct AFS_UCRED *afs_osi_proc2cred(AFS_PROC * pr);
+extern const struct AFS_UCRED *afs_osi_proc2cred(AFS_PROC * pr);
#endif
/* afs_osi_alloc.c */
afs_GCPAGs_perproc_func(AFS_PROC * pproc)
{
afs_int32 pag, hash, uid;
- struct AFS_UCRED *pcred;
+ const struct AFS_UCRED *pcred;
afs_GCPAGs_perproc_count++;