mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
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:
parent
6122876caf
commit
6c9fd25ae7
@ -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;
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user