]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Fix 'variable scope can be reduced' warnings.
authorOliver Kurth <okurth@vmware.com>
Mon, 28 Oct 2019 23:12:42 +0000 (16:12 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 28 Oct 2019 23:12:42 +0000 (16:12 -0700)
commitcbb314348c85ea224eaa8548b2e2ea34beb7c69a
tree2cefd54b2d1b9738b2194bc1c6d5a8731b134eb1
parent975abab4d68c1d55abb1cd05132e1cca14340f56
Fix 'variable scope can be reduced' warnings.

One of the code quality checkers (Codacy) reported the following
issue for a bunch of files bundled in 'open-vm-tools'.

"""
Fix 'The scope of the variable 'var' can be reduced.'
"""

Checked all applicable files and removed the variable initialization
where it's really not necessary.

This is really not a major issue but it's no harm fixing.
51 files changed:
open-vm-tools/hgfsclient/hgfsclient.c
open-vm-tools/lib/appUtil/appUtilX11.c
open-vm-tools/lib/asyncsocket/asyncSocketInterface.c
open-vm-tools/lib/dataMap/dataMap.c
open-vm-tools/lib/file/fileIO.c
open-vm-tools/lib/file/fileIOPosix.c
open-vm-tools/lib/file/fileLockPrimitive.c
open-vm-tools/lib/file/fileStandAlone.c
open-vm-tools/lib/file/fileTempPosix.c
open-vm-tools/lib/foundryMsg/foundryMsg.c
open-vm-tools/lib/glibUtils/fileLogger.c
open-vm-tools/lib/hgfs/hgfsEscape.c
open-vm-tools/lib/lock/ulExcl.c
open-vm-tools/lib/misc/codesetOld.c
open-vm-tools/lib/misc/hostinfoPosix.c
open-vm-tools/lib/misc/machineID.c
open-vm-tools/lib/misc/strutil.c
open-vm-tools/lib/misc/util_misc.c
open-vm-tools/lib/nicInfo/nicInfoPosix.c
open-vm-tools/lib/rpcChannel/simpleSocket.c
open-vm-tools/lib/rpcIn/rpcin.c
open-vm-tools/lib/unicode/unicodeSimpleTypes.c
open-vm-tools/lib/user/util.c
open-vm-tools/libDeployPkg/linuxDeployment.c
open-vm-tools/libDeployPkg/processPosix.c
open-vm-tools/modules/solaris/vmxnet/vmxnet.c
open-vm-tools/modules/solaris/vmxnet3/vmxnet3_main.c
open-vm-tools/modules/solaris/vmxnet3/vmxnet3_rx.c
open-vm-tools/namespacetool/namespacetool.c
open-vm-tools/services/plugins/deployPkg/deployPkg.c
open-vm-tools/services/plugins/dndcp/copyPasteCompatX11.c
open-vm-tools/services/plugins/dndcp/copyPasteUIX11.cpp
open-vm-tools/services/plugins/dndcp/dnd/dndMsg.c
open-vm-tools/services/plugins/dndcp/dnd/dndXdg.c
open-vm-tools/services/plugins/dndcp/dndUIX11.cpp
open-vm-tools/services/plugins/dndcp/pointer.cpp
open-vm-tools/services/plugins/dndcp/vmCopyPasteDnDWrapper.cpp
open-vm-tools/services/plugins/guestInfo/guestInfoServer.c
open-vm-tools/services/plugins/resolutionSet/resolutionRandR12.c
open-vm-tools/services/plugins/resolutionSet/resolutionX11.c
open-vm-tools/services/plugins/vmbackup/scriptOps.c
open-vm-tools/services/vmtoolsd/toolsRpc.c
open-vm-tools/tests/testVmblock/manual-blocker.c
open-vm-tools/vgauth/service/fileLogger.c
open-vm-tools/vgauth/service/gio.c
open-vm-tools/vgauth/serviceImpl/alias.c
open-vm-tools/vgauth/serviceImpl/proto.c
open-vm-tools/vgauth/serviceImpl/verify.c
open-vm-tools/vmblock-fuse/fsops.c
open-vm-tools/vmhgfs-fuse/cache.c
open-vm-tools/vmhgfs-fuse/file.c