Fix compiler warnings over const losses.
This commit is contained in:
parent
d0373af5c0
commit
2d9c701c37
13 changed files with 22 additions and 22 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue