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] = {
> >       {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[] = {
>
> 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ïc.
-- 
| Loïc Tortay <[EMAIL PROTECTED]> -     IN2P3 Computing Centre     |
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to