mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
SOLARIS: Give afs_xsetgroups proper prototypes
afs_xsetgroups was using old-style function definitions, and lacked a proper prototype. Modernize the function definition, and make a proper prototype for it. Change-Id: Ib11a7fc15afabdf0a538da4c1665acae6041fda5 Reviewed-on: https://gerrit.openafs.org/12708 Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Cheyenne Wills <cwills@sinenomine.net> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Tested-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
parent
91482964cb
commit
9c75cc4579
@ -36,11 +36,14 @@ static int
|
||||
int change_parent);
|
||||
|
||||
|
||||
#ifdef AFS_SUN511_ENV
|
||||
int64_t
|
||||
#else
|
||||
int
|
||||
afs_xsetgroups(uap, rvp)
|
||||
u_int uap; /* this is gidsetsize */
|
||||
gid_t *rvp; /* this is gidset */
|
||||
#endif
|
||||
afs_xsetgroups(u_int uap, gid_t *rvp)
|
||||
{
|
||||
/* 'uap' is our gidsetsize; 'rvp' is our gidset */
|
||||
int code = 0;
|
||||
struct vrequest treq;
|
||||
struct proc *proc = ttoproc(curthread);
|
||||
|
@ -23,4 +23,12 @@ int afs_putpage(struct vnode *vp, offset_t off, u_int len, int flags,
|
||||
int afs_putapage(struct vnode *vp, struct page *pages, u_offset_t * offp,
|
||||
size_t * lenp, int flags, afs_ucred_t *credp);
|
||||
|
||||
/* osi_groups.c */
|
||||
|
||||
#ifdef AFS_SUN511_ENV
|
||||
int64_t afs_xsetgroups(u_int uap, gid_t *rvp);
|
||||
#else
|
||||
int afs_xsetgroups(u_int uap, gid_t *rvp);
|
||||
#endif
|
||||
|
||||
#endif /* _OSI_PROTOTYPES_H_ */
|
||||
|
@ -394,8 +394,6 @@ afsinit(int fstype, char *dummy)
|
||||
afsinit(struct vfssw *vfsswp, int fstype)
|
||||
#endif
|
||||
{
|
||||
extern int afs_xsetgroups();
|
||||
|
||||
AFS_STATCNT(afsinit);
|
||||
|
||||
afs_orig_setgroups = sysent[SYS_setgroups].sy_callc;
|
||||
|
Loading…
Reference in New Issue
Block a user