fix-fakestat-support-for-hardlinks-20020731 made afs_vnop_link.c

not compile under Sun's cc, since it tried to take the address of
a register variable.  Don't declare the arguments as register.
This commit is contained in:
Nickolai Zeldovich 2002-07-31 19:43:31 +00:00
parent 6122876caf
commit 6c9fd25ae7

View File

@ -32,9 +32,9 @@ extern afs_rwlock_t afs_xcbhash;
#ifdef AFS_OSF_ENV #ifdef AFS_OSF_ENV
afs_link(avc, ndp) afs_link(avc, ndp)
register struct vcache *avc; struct vcache *avc;
struct nameidata *ndp; { struct nameidata *ndp; {
register struct vcache *adp = VTOAFS(ndp->ni_dvp); struct vcache *adp = VTOAFS(ndp->ni_dvp);
char *aname = ndp->ni_dent.d_name; char *aname = ndp->ni_dent.d_name;
struct ucred *acred = ndp->ni_cred; struct ucred *acred = ndp->ni_cred;
#else /* AFS_OSF_ENV */ #else /* AFS_OSF_ENV */
@ -44,7 +44,7 @@ afs_link(OSI_VC_ARG(adp), avc, aname, acred)
afs_link(avc, OSI_VC_ARG(adp), aname, acred) afs_link(avc, OSI_VC_ARG(adp), aname, acred)
#endif #endif
OSI_VC_DECL(adp); OSI_VC_DECL(adp);
register struct vcache *avc; struct vcache *avc;
char *aname; char *aname;
struct AFS_UCRED *acred; struct AFS_UCRED *acred;
{ {