Always include afsconfig.h
[openafs.git] / src / vol / namei_map.c
1 #include <afsconfig.h>
2 #include <afs/param.h>
3
4 #include <sys/types.h>
5 #include <inttypes.h>
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <afs/afsutil.h>
9
10 int main(int argc, char **argv) {
11   lb64_string_t tmp;
12
13   unsigned long vol;
14   if (argc < 2) { fprintf(stderr, "Usage: nametodir vol\n"); exit(1); }
15   vol=strtoul(argv[1], NULL, 0);
16   (void)int32_to_flipbase64(tmp, (int64_t) (vol & 0xff));
17   printf("Component is %s\n", tmp);
18   (void)int32_to_flipbase64(tmp, (int64_t) vol);
19   printf("Component is %s\n", tmp);
20
21   exit(0);
22 }