Changed drefs to const char* to fix compiler warnings

This commit is contained in:
Norman Princen
2020-04-18 22:19:53 -07:00
committed by GitHub
parent 0713a95539
commit 132978b53d

View File

@@ -6,7 +6,7 @@
#include "Test.h"
#include "xplaneConnect.h"
int doCTRLTest(XPCSocket *sock, char* drefs[7], float values[], int size, int ac, float expected[7])
int doCTRLTest(XPCSocket *sock, const char* drefs[7], float values[], int size, int ac, float expected[7])
{
float* data[7];
int sizes[7];
@@ -66,7 +66,7 @@ int doGETCTest(float values[7], int ac, float expected[7])
return 0;
}
int basicCTRLTest(char** drefs, int ac)
int basicCTRLTest(const char** drefs, int ac)
{
// Set control surfaces to known state.
float CTRL[6] = { 0.0F, 0.0F, 0.0F, 0.8F, 1.0F, 0.5F };
@@ -117,7 +117,7 @@ int basicCTRLTest(char** drefs, int ac)
int testCTRL_Player()
{
char* drefs[] =
const char* drefs[] =
{
"sim/cockpit2/controls/yoke_pitch_ratio",
"sim/cockpit2/controls/yoke_roll_ratio",
@@ -132,7 +132,7 @@ int testCTRL_Player()
int testCTRL_NonPlayer()
{
char* drefs[] =
const char* drefs[] =
{
"sim/multiplayer/position/plane1_yolk_pitch",
"sim/multiplayer/position/plane1_yolk_roll",
@@ -147,7 +147,7 @@ int testCTRL_NonPlayer()
int testCTRL_Speedbrakes()
{
char* drefs[] =
const char* drefs[] =
{
"sim/cockpit2/controls/yoke_pitch_ratio",
"sim/cockpit2/controls/yoke_roll_ratio",