From d355b4d6fce477e275ac34eb04b3d0f5504dd6fb Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 14 Sep 2011 22:39:52 -0400 Subject: [PATCH] Windows: minor cm_ioctl corrections remove unused variable fix a comment to reference correct function name remove debugging windows event log entry that doesn't belong in production code Change-Id: Id81cfccd2c2c15d7fcbdbb5edc7dcb095abbd665 Reviewed-on: http://gerrit.openafs.org/5426 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_ioctl.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index c6d29fc4a9..5d246633bb 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -2091,15 +2091,13 @@ cm_IoctlSymlink(struct cm_ioctl *ioctlp, struct cm_user *userp, cm_scache_t *dsc afs_int32 code; cm_attr_t tattr; char *cp; - char *symlp; - int free_syml = FALSE; if (!(ioctlp->flags & CM_IOCTLFLAG_USEUTF8)) { /* Translate chars for the linked to name */ TranslateExtendedChars(ioctlp->inDatap); } - cp = symlp = ioctlp->inDatap; /* contents of link */ + cp = ioctlp->inDatap; /* contents of link */ #ifdef AFS_FREELANCE_CLIENT if (cm_freelanceEnabled && dscp == cm_data.rootSCachep) { @@ -2118,7 +2116,7 @@ cm_IoctlSymlink(struct cm_ioctl *ioctlp, struct cm_user *userp, cm_scache_t *dsc cp = p; } - osi_Log0(afsd_logp,"IoctlCreateSymlink within Freelance root dir"); + osi_Log0(afsd_logp,"IoctlSymlink within Freelance root dir"); fsleaf = cm_ClientStringToFsStringAlloc(leaf, -1, NULL); code = cm_FreelanceAddSymlink(fsleaf, cp, NULL); free(fsleaf); @@ -2231,7 +2229,6 @@ cm_IoctlIslink(struct cm_ioctl *ioctlp, struct cm_user *userp, cm_scache_t *dscp TranslateExtendedChars(ioctlp->inDatap); } cp = ioctlp->inDatap; - osi_LogEvent("cm_IoctlListlink",NULL," name[%s]",cp); clientp = cm_Utf8ToClientStringAlloc(cp, -1, NULL); code = cm_Lookup(dscp, clientp[0] ? clientp : L".", CM_FLAG_NOMOUNTCHASE, userp, reqp, &scp);