PAG numbers are represented by afs_uint32. Fix assorted call sites to
reflect this.
While we're here, prototype ktc_newpag, and fix the casts used by
the ktc_curpag() call.
Reviewed-on: http://gerrit.openafs.org/167
Reviewed-by: Russ Allbery <rra@stanford.edu>
Tested-by: Russ Allbery <rra@stanford.edu>
AddPag(afs_int32 aval, struct AFS_UCRED **credpp)
#endif
{
- afs_int32 newpag, code;
+ afs_int32 code;
+ afs_uint32 newpag;
AFS_STATCNT(AddPag);
#if defined(AFS_OSF_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
i = tcell->cellNum;
afs_PutCell(tcell, READ_LOCK);
if (set_parent_pag) {
- afs_int32 pag;
+ afs_uint32 pag;
#if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
#if defined(AFS_DARWIN_ENV)
struct proc *p = current_proc(); /* XXX */
int ktc_ForgetAllTokens(void);
afs_uint32 ktc_curpag(void);
+#ifdef AFS_KERBEROS_ENV
+int ktc_newpag(void);
+#endif
+
#ifdef AFS_NT40_ENV
/* Flags for the flag word sent along with a token */
{
int code;
struct ViceIoctl iob;
- afs_int32 pag;
+ afs_uint32 pag;
/* now setup for the pioctl */
iob.in = NULL;
iob.in_size = 0;
- iob.out = &pag;
- iob.out_size = sizeof(afs_int32);
+ iob.out = (caddr_t) &pag;
+ iob.out_size = sizeof(afs_uint32);
code = PIOCTL(0, VIOC_GETPAG, &iob, 0);
if (code < 0) {