resis/ResSimple.c: ResGetDevice(): Call to function with fewer arguments than declared parameters

gparams.rg_ttype seems to be the only value of the correct type that has connectivity with the callsite.

Copilot Autofix rejected: ResGetDevice(gparams.rg_devloc, /* second argument */);

resis/ResSimple.c
9aa39f82 (2021-05-25 22:41:52 -0400 1039)           resDevice *res = ResGetDevice(gparams.rg_devloc);

commit 9aa39f820f (tag: 8.3.169)
Date:   Tue May 25 22:41:52 2021 -0400
This commit is contained in:
Darryl L. Miles 2024-09-29 23:00:00 +01:00 committed by Tim Edwards
parent d297b99953
commit ce1e027c55
1 changed files with 1 additions and 1 deletions

View File

@ -1036,7 +1036,7 @@ ResSetPathRes()
}
if (ResOriginNode == NULL)
{
resDevice *res = ResGetDevice(gparams.rg_devloc);
resDevice *res = ResGetDevice(gparams.rg_devloc, gparams.rg_ttype);
ResOriginNode = res->rd_fet_source;
ResOriginNode->rn_why = RES_NODE_ORIGIN;
ResOriginNode->rn_noderes = 0;