From 13ebb6412b4603be50de30789ba048bef485171b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 8 May 2010 22:41:39 -0400 Subject: [PATCH] Windows: fs.c requires size_t len not int len Missed one case of an 'int len' being passed into StringCbLength. Also, remove one instance of 'int len' that was not used at all. LICENSE MIT Change-Id: I457d4ae98adf9d4ca0c1b7dcb74470d9bbc85a54 Reviewed-on: http://gerrit.openafs.org/1929 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/fs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/WINNT/afsd/fs.c b/src/WINNT/afsd/fs.c index bf08850cee..d1f437d19b 100644 --- a/src/WINNT/afsd/fs.c +++ b/src/WINNT/afsd/fs.c @@ -1739,7 +1739,7 @@ ExamineCmd(struct cmd_syndesc *as, void *arock) int error = 0; int literal = 0; cm_ioctlQueryOptions_t options; - int len; + size_t len; if (as->parms[1].items) literal = 1; @@ -2970,7 +2970,6 @@ NewCellCmd(struct cmd_syndesc *as, void *arock) struct hostent *thp; afs_int32 fsport = 0, vlport = 0; errno_t err; - int len; size_t destRemaining; memset(space, 0, AFS_MAXHOSTS * sizeof(afs_int32));