#include <sys/lockf.h>
#ifdef AFS_AIX51_ENV
#include <sys/cred.h>
+#ifdef HAVE_SYS_PAG_H
#include <sys/pag.h>
#endif
#endif
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "auth.h"
#include <afs/venus.h>
#include <afs/afsutil.h>
+#include <afs/sys_prototypes.h>
#endif /* defined(UKERNEL) */
{
struct ViceIoctl iob;
char tbuffer[MAXPIOCTLTOKENLEN];
- register afs_int32 code;
+ register afs_int32 code = 0;
int index;
char *stp, *cellp; /* secret token ptr */
struct ClearToken ct;
{
struct ViceIoctl iob;
char tbuffer[MAXPIOCTLTOKENLEN];
- register afs_int32 code;
+ register afs_int32 code = 0 ;
register char *tp;
afs_int32 temp, index;
if (pag == -1) {
sprintf(fname, "%s%d", prefix, getuid());
} else {
- sprintf(fname, "%sp%ld", prefix, (long int) pag);
+ sprintf(fname, "%sp%lu", prefix, afs_cast_uint32(pag));
}
ktc_set_tkt_string(fname);