From 2a1a65faab0a13083a749a63dcf3ee0879823188 Mon Sep 17 00:00:00 2001 From: Mark Vitale Date: Tue, 5 Mar 2019 23:20:10 -0500 Subject: [PATCH] dir: correct fid type for dtest The dtest utility has had its fid[] arrays defined as 'long' since the initial IBM import. Commit 0a98548832472152304410e41306adcc5b91f6a2 'dir: Make test utility build again' converted some - but not all - the fid arrays to afs_int32. Allow dtest to operate correctly by converting the rest of the fid arrays to afs_int32. Change-Id: I2ebe36272e02cf860577153ab94f3591e1d707e8 Reviewed-on: https://gerrit.openafs.org/13795 Reviewed-by: Andrew Deason Reviewed-by: Benjamin Kaduk Reviewed-by: Cheyenne Wills Reviewed-by: Michael Meffie Tested-by: BuildBot --- src/dir/test/dtest.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dir/test/dtest.c b/src/dir/test/dtest.c index d2d3d38..e6e3875 100644 --- a/src/dir/test/dtest.c +++ b/src/dir/test/dtest.c @@ -46,7 +46,7 @@ static void LookupDir(char *dname, char *ename) { dirhandle dir; - long fid[3]; + afs_int32 fid[3]; int code; OpenDir(dname, &dir); @@ -54,7 +54,7 @@ LookupDir(char *dname, char *ename) if (code) printf("lookup code %d\n", code); else { - printf("Found fid %ld.%ld for file '%s'\n", fid[1], fid[2], ename); + printf("Found fid %d.%d for file '%s'\n", fid[1], fid[2], ename); } DFlush(); } @@ -63,7 +63,7 @@ static void AddEntry(char *dname, char *ename) { dirhandle dir; - long fid[3]; + afs_int32 fid[3]; int code; fid[1] = fidCounter++; @@ -221,7 +221,7 @@ FidZap(dirhandle *dir) } void -FidZero(long *afid) +FidZero(afs_int32 *afid) { *afid = 0; } @@ -233,7 +233,7 @@ FidEq(dirhandle *dir1, dirhandle *dir2) } int -FidVolEq(long *afid, long *bfid) +FidVolEq(afs_int32 *afid, afs_int32 *bfid) { return 1; } -- 1.9.4