From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id BBDC43858D20; Mon, 14 Mar 2022 23:05:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBDC43858D20 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Takashi Yano To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: path: Convert type of variable 'remlen' to DWORD. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/master X-Git-Oldrev: 7df94e3b4ff3335d21cd3069d3f73818cd44dd74 X-Git-Newrev: 0dad577b4b487104075e921f2d2fa456f5930ff3 Message-Id: <20220314230523.BBDC43858D20@sourceware.org> Date: Mon, 14 Mar 2022 23:05:23 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2022 23:05:23 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D0dad577b4b4= 87104075e921f2d2fa456f5930ff3 commit 0dad577b4b487104075e921f2d2fa456f5930ff3 Author: Takashi Yano Date: Mon Mar 14 20:32:53 2022 +0900 Cygwin: path: Convert type of variable 'remlen' to DWORD. =20 - Variable remlen stores the return value of QueryDosDeviceW(), so it is better to be DWORD. Diff: --- winsup/cygwin/path.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index eceafbbcf..e370843ee 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -3523,8 +3523,7 @@ restart: {(WCHAR) towupper (upath.Buffer[4]), L':', L'\0'}; WCHAR remote[MAX_PATH]; =20 - - int remlen =3D QueryDosDeviceW (drive, remote, MAX_PATH); + DWORD remlen =3D QueryDosDeviceW (drive, remote, MAX_PATH); if (remlen < 3) goto file_not_symlink; /* fallback */ remlen -=3D 2; /* Two L'\0' */