Commit e7232f63 authored by Ian Craggs's avatar Ian Craggs

Change structure initializers to use correct char array lengths - bug #389459

parent 3aafa73a
...@@ -212,7 +212,7 @@ typedef struct ...@@ -212,7 +212,7 @@ typedef struct
int msgid; int msgid;
} MQTTAsync_message; } MQTTAsync_message;
#define MQTTAsync_message_initializer { "MQTM", 0, 0, NULL, 0, 0, 0, 0 } #define MQTTAsync_message_initializer { {'M', 'Q', 'T', 'M'}, 0, 0, NULL, 0, 0, 0, 0 }
/** /**
* This is a callback function. The client application * This is a callback function. The client application
...@@ -362,7 +362,7 @@ typedef struct ...@@ -362,7 +362,7 @@ typedef struct
MQTTAsync_token token; /* output */ MQTTAsync_token token; /* output */
} MQTTAsync_responseOptions; } MQTTAsync_responseOptions;
#define MQTTAsync_responseOptions_initializer { "MQTR", 0, NULL, NULL, 0, 0 } #define MQTTAsync_responseOptions_initializer { {'M', 'Q', 'T', 'R'}, 0, NULL, NULL, 0, 0 }
/** /**
...@@ -476,7 +476,7 @@ typedef struct ...@@ -476,7 +476,7 @@ typedef struct
int qos; int qos;
} MQTTAsync_willOptions; } MQTTAsync_willOptions;
#define MQTTAsync_willOptions_initializer { "MQTW", 0, NULL, NULL, 0, 0 } #define MQTTAsync_willOptions_initializer { {'M', 'Q', 'T', 'W'}, 0, NULL, NULL, 0, 0 }
/** /**
* MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the * MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the
...@@ -527,7 +527,7 @@ typedef struct ...@@ -527,7 +527,7 @@ typedef struct
} MQTTAsync_SSLOptions; } MQTTAsync_SSLOptions;
#define MQTTAsync_SSLOptions_initializer { "MQTS", 0, NULL, NULL, NULL, NULL, NULL, 1 } #define MQTTAsync_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 0, NULL, NULL, NULL, NULL, NULL, 1 }
/** /**
* MQTTAsync_connectOptions defines several settings that control the way the * MQTTAsync_connectOptions defines several settings that control the way the
...@@ -629,7 +629,7 @@ typedef struct ...@@ -629,7 +629,7 @@ typedef struct
} MQTTAsync_connectOptions; } MQTTAsync_connectOptions;
#define MQTTAsync_connectOptions_initializer { "MQTC", 1, 60, 1, 10, NULL, NULL, NULL, 30, 20, NULL, NULL } #define MQTTAsync_connectOptions_initializer { {'M', 'Q', 'T', 'C'}, 1, 60, 1, 10, NULL, NULL, NULL, 30, 20, NULL, NULL }
/** /**
* This function attempts to connect a previously-created client (see * This function attempts to connect a previously-created client (see
...@@ -685,7 +685,7 @@ typedef struct ...@@ -685,7 +685,7 @@ typedef struct
void* context; void* context;
} MQTTAsync_disconnectOptions; } MQTTAsync_disconnectOptions;
#define MQTTAsync_disconnectOptions_initializer { "MQTD", 0, 0, NULL, NULL, NULL } #define MQTTAsync_disconnectOptions_initializer { {'M', 'Q', 'T', 'D'}, 0, 0, NULL, NULL, NULL }
/** /**
......
...@@ -395,7 +395,7 @@ typedef struct ...@@ -395,7 +395,7 @@ typedef struct
int qos; int qos;
} MQTTClient_willOptions; } MQTTClient_willOptions;
#define MQTTClient_willOptions_initializer { "MQTW", 0, NULL, NULL, 0, 0 } #define MQTTClient_willOptions_initializer { {'M', 'Q', 'T', 'W'}, 0, NULL, NULL, 0, 0 }
/** /**
* MQTTClient_sslProperties defines the settings to establish an SSL/TLS connection using the * MQTTClient_sslProperties defines the settings to establish an SSL/TLS connection using the
...@@ -446,7 +446,7 @@ typedef struct ...@@ -446,7 +446,7 @@ typedef struct
} MQTTClient_SSLOptions; } MQTTClient_SSLOptions;
#define MQTTClient_SSLOptions_initializer { "MQTS", 0, NULL, NULL, NULL, NULL, NULL, 1 } #define MQTTClient_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 0, NULL, NULL, NULL, NULL, NULL, 1 }
/** /**
* MQTTClient_connectOptions defines several settings that control the way the * MQTTClient_connectOptions defines several settings that control the way the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment