Windows: minor cm_ioctl corrections
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 15 Sep 2011 02:39:52 +0000 (22:39 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Thu, 15 Sep 2011 02:46:48 +0000 (19:46 -0700)
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 <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/WINNT/afsd/cm_ioctl.c

index c6d29fc..5d24663 100644 (file)
@@ -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);