Skip to content

Commit 5e7b41d

Browse files
authored
Merge pull request #119 from ityuhui/yh-settings-version-0516
Eliminate some compiler warnings
2 parents 099924a + 885b795 commit 5e7b41d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

kubernetes/include/apiClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ apiClient_t* apiClient_create_with_base_path(const char *basePath
4040

4141
void apiClient_free(apiClient_t *apiClient);
4242

43-
void apiClient_invoke(apiClient_t *apiClient,char* operationParameter, list_t *queryParameters, list_t *headerParameters, list_t *formParameters,list_t *headerType,list_t *contentType, char *bodyParameters, char *requestType);
43+
void apiClient_invoke(apiClient_t *apiClient,const char* operationParameter, list_t *queryParameters, list_t *headerParameters, list_t *formParameters,list_t *headerType,list_t *contentType, const char *bodyParameters, const char *requestType);
4444

4545
sslConfig_t *sslConfig_create(const char *clientCertFile, const char *clientKeyFile, const char *CACertFile, int insecureSkipTlsVerify);
4646

kubernetes/src/apiClient.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ void replaceSpaceWithPlus(char *stringToProcess) {
119119
}
120120
}
121121

122-
char *assembleTargetUrl(char *basePath,
123-
char *operationParameter,
122+
char *assembleTargetUrl(const char *basePath,
123+
const char *operationParameter,
124124
list_t *queryParameters) {
125125
int neededBufferSizeForQueryParameters = 0;
126126
listEntry_t *listEntry;
@@ -182,7 +182,7 @@ char *assembleHeaderField(char *key, char *value) {
182182
return header;
183183
}
184184

185-
void postData(CURL *handle, char *bodyParameters) {
185+
void postData(CURL *handle, const char *bodyParameters) {
186186
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, bodyParameters);
187187
curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE_LARGE,
188188
strlen(bodyParameters));
@@ -201,14 +201,14 @@ int lengthOfKeyPair(keyValuePair_t *keyPair) {
201201

202202

203203
void apiClient_invoke(apiClient_t *apiClient,
204-
char *operationParameter,
204+
const char *operationParameter,
205205
list_t *queryParameters,
206206
list_t *headerParameters,
207207
list_t *formParameters,
208208
list_t *headerType,
209209
list_t *contentType,
210-
char *bodyParameters,
211-
char *requestType) {
210+
const char *bodyParameters,
211+
const char *requestType) {
212212
CURL *handle = curl_easy_init();
213213
CURLcode res;
214214

settings

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Kubernetes branch/tag to get the OpenAPI spec from.
2-
export KUBERNETES_BRANCH="v1.22.1"
2+
export KUBERNETES_BRANCH="v1.23.5"
33

44
# client version for packaging and releasing. It can
55
# be different than SPEC_VERSION.
6-
export CLIENT_VERSION="0.1.0"
6+
export CLIENT_VERSION="0.3.0"
77

88
# Name of the release package
99
export PACKAGE_NAME="client"

0 commit comments

Comments
 (0)