Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
e7232f63
Commit
e7232f63
authored
Feb 28, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change structure initializers to use correct char array lengths - bug #389459
parent
3aafa73a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
MQTTAsync.h
src/MQTTAsync.h
+6
-6
MQTTClient.h
src/MQTTClient.h
+2
-2
No files found.
src/MQTTAsync.h
View file @
e7232f63
...
@@ -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 }
/**
/**
...
...
src/MQTTClient.h
View file @
e7232f63
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment