byte cb_valid;
} cb_cursor;
-static struct {
- void ** cursor;
-} cb_cache;
-
static void
usage(char * prog)
{
main(int argc, char ** argv)
{
banner();
-
if (argc > 2 || (argc == 2 && !strcmp(argv[1], "-h"))) {
usage(argv[0]);
return 1;
if (openFile(argv[1]))
return 1;
} else {
- if (openFile(AFSDIR_SERVER_FSSTATE_FILEPATH))
+ if (openFile((char *)AFSDIR_SERVER_FSSTATE_FILEPATH))
return 1;
}
goto done;
}
- printf("mapped %d bytes at 0x%x\n", map_len, map);
+ printf("mapped %lu bytes at %"AFS_PTR_FMT"\n", (unsigned long)map_len, map);
done:
if (ret) {
do { \
char * _p = (char *)addr; \
char * _m = (char *)map; \
- printf("loading structure from address 0x%x (offset %u)\n", \
+ printf("loading structure from address %"AFS_PTR_FMT" (offset %u)\n", \
addr, _p-_m); \
} while (0)
static void
dump_he_hcps(void)
{
- char temp_str[40];
afs_int32 * hcps;
int len, i;
{
int i;
unsigned char * p = (unsigned char *)map;
- afs_uint32 c32;
if (!len)
return;
if ((offset + len) > map_len) {
- fprintf(stderr, "offset + length exceeds memory map size (%u > %u)\n",
- offset+len, map_len);
+ fprintf(stderr, "offset + length exceeds memory map size (%u > %lu)\n",
+ offset+len, (unsigned long)map_len);
return;
}
static int
get_cb_timeout(void)
{
- char * buf;
-
if (hdrs.timeout)
return 0;
static int
get_cb_fehash(void)
{
- char * buf;
-
if (hdrs.fehash)
return 0;
static int
get_cb(afs_uint32 idx)
{
- int i;
char * p;
if (get_fe(fe_cursor.idx))
return 0;
}
+#if 0
static int
find_he_by_index(afs_uint32 idx)
{
}
return 1;
}
+#endif
static int
find_fe_by_index(afs_uint32 idx)