#include <sys/time.h>
#include <stdio.h>
#include <ctype.h>
-#include <strings.h>
+#include <string.h>
#include <sys/file.h>
#include <afs/param.h>
#include "pterror.h"
#define IDHash(x) (abs(x) % HASHSIZE)
-#define print_id(x) ( ((flags&DO_SYS)==0 && (abs(x)>32767)) || \
- ((flags&DO_OTR)==0 && (abs(x)<32768)))
+#define print_id(x) ( ((flags&DO_SYS)==0 && (x<-32767 || x>97536)) || \
+ ((flags&DO_OTR)==0 && (x>-32768 && x<97537)))
extern char *optarg;
extern int optind;
if (ntohl(uh->magic) != UBIK_MAGIC)
fprintf(stderr, "ptdump: %s: Bad UBIK_MAGIC. Is %x should be %x\n",
pfile, ntohl(uh->magic), UBIK_MAGIC);
- bcopy(&uh->version, &uv, sizeof(struct ubik_version));
+ memcpy(&uv, &uh->version, sizeof(struct ubik_version));
fprintf(stderr, "Ubik Version is: %d.%d\n",
uv.epoch, uv.counter);
if (read(dbase_fd, &prh, sizeof(struct prheader)) < 0) {
code = pr_ReadEntry(0,0,gpos,&gentry);
if (!code) {
gentry.flags = flags;
+ gentry.ngroups = quota;
code = pr_WriteEntry(0,0,gpos,&gentry);
}
if (code)