X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Ftviced%2Fstate_analyzer.c;h=408da768a2c8c47dc9e8453d21b448d83e84802f;hp=ae8c3ff7adc9ac8e0bd0a9c4c42b9581ad2f9ac2;hb=8cc60f4931f1b62c84d0a74d0fbbbfd0ea582a91;hpb=51ec2670116d95bb6bdcd7871fce685fc2eaaeb0 diff --git a/src/tviced/state_analyzer.c b/src/tviced/state_analyzer.c index ae8c3ff..408da76 100644 --- a/src/tviced/state_analyzer.c +++ b/src/tviced/state_analyzer.c @@ -26,14 +26,7 @@ RCSID #include #include #include - -#ifdef HAVE_STRING_H #include -#else -#ifdef HAVE_STRINGS_H -#include -#endif -#endif #include #include @@ -53,7 +46,6 @@ RCSID #include #include #include -#include #include #include #include @@ -254,7 +246,7 @@ static struct { static void usage(char * prog) { - fprintf(stderr, "usage: %s []\n"); + fprintf(stderr, "usage: %s []\n", prog); } int @@ -1835,6 +1827,12 @@ get_fe(afs_uint32 idx) static int get_fe_hdr(void) { + if (!fe_cursor.cursor) { + if(get_fe(fe_cursor.idx)) { + return 1; + } + } + memcpy(&fe_cursor.hdr, fe_cursor.cursor, sizeof(struct callback_state_entry_header)); fe_cursor.hdr_valid = 1; return 0;