Fix compiler warnings over const losses.

This commit is contained in:
Our Air Quality 2019-04-06 11:30:53 +11:00
parent d0373af5c0
commit 2d9c701c37
13 changed files with 22 additions and 22 deletions

View file

@ -19,7 +19,7 @@
typedef void (*handle_http_token)(char *);
struct http_token_table {
char * token;
const char * token;
handle_http_token http_tock_cb;
};

View file

@ -15,9 +15,9 @@ typedef enum {
} HTTP_Client_State;
typedef struct {
char * server;
char * port;
char * path;
const char * server;
const char * port;
const char * path;
char * buffer;
uint16_t buffer_size;
http_final_cb buffer_full_cb;

View file

@ -38,10 +38,10 @@ typedef enum {
* Struct that contains all info for start ota.
*/
typedef struct {
char *server; /**< Server domain */
char *port; /**< Server port */
char *binary_path; /**< Server Path dowload new update binary */
char *sha256_path; /**< Server Path of SHA256 sum for check binary, could be NULL, check will be skipped */
const char *server; /**< Server domain */
const char *port; /**< Server port */
const char *binary_path; /**< Server Path dowload new update binary */
const char *sha256_path; /**< Server Path of SHA256 sum for check binary, could be NULL, check will be skipped */
} ota_info;
/**