hw/xwin: Fix using index as a formal parameter in winmonitors.c shadows index()
Fix using index as a local variable shadows global declaration of index() from strings.h winmonitors.c: In function ‘QueryMonitor’: winmonitors.c:59:23: error: declaration of ‘index’ shadows a global declaration Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
5b0435dbda
commit
2d9123fd0c
|
@ -59,13 +59,13 @@ getMonitorInfo(HMONITOR hMonitor, HDC hdc, LPRECT rect, LPARAM _data)
|
|||
}
|
||||
|
||||
Bool
|
||||
QueryMonitor(int index, struct GetMonitorInfoData *data)
|
||||
QueryMonitor(int i, struct GetMonitorInfoData *data)
|
||||
{
|
||||
/* prepare data */
|
||||
if (data == NULL)
|
||||
return FALSE;
|
||||
memset(data, 0, sizeof(*data));
|
||||
data->requestedMonitor = index;
|
||||
data->requestedMonitor = i;
|
||||
|
||||
/* query information */
|
||||
EnumDisplayMonitors(NULL, NULL, getMonitorInfo, (LPARAM) data);
|
||||
|
|
Loading…
Reference in New Issue
Block a user