[OpenAFS-devel] Re: OpenAFS 1.4.0-rc7 and Solaris 10
Loic Tortay
tortay@cc.in2p3.fr
Thu, 13 Oct 2005 15:00:24 +0200
According to Joe Buehler:
> Loic Tortay wrote:
>
> > Indeed, the code seems visibly wrong on Solaris 10:
> > [...]
> > struct afs_nfs_disp_tbl afs_acl3_disp_tbl[3] =3D {
> > {afs_nfs2_null},
> > {afs_acl3_getacl},
> > {afs_acl3_setacl},
> > #if defined(AFS_SUN510_ENV)
> > {afs_acl3_getxattrdir},
> > #endif
> > };
> > [...]
>
> You should be able to just omit the array size:
>
> > struct afs_nfs_disp_tbl afs_acl3_disp_tbl[] =3D {
>
> The compiler will figure it out.
>
Not in this case, the variables appear twice, first in a declaration
and a second time in a initialisation.
The '[]' form only works for initialisation, AFAIK.
I tried to minimize the changes to the code.
Lo=EFc.
--=20
| Lo=EFc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |