Skip to content

Commit

Permalink
Merge pull request #119 from ityuhui/yh-settings-version-0516
Browse files Browse the repository at this point in the history
Eliminate some compiler warnings
  • Loading branch information
k8s-ci-robot authored May 16, 2022
2 parents 099924a + 885b795 commit 5e7b41d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion kubernetes/include/apiClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ apiClient_t* apiClient_create_with_base_path(const char *basePath

void apiClient_free(apiClient_t *apiClient);

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);
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);

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

Expand Down
12 changes: 6 additions & 6 deletions kubernetes/src/apiClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ void replaceSpaceWithPlus(char *stringToProcess) {
}
}

char *assembleTargetUrl(char *basePath,
char *operationParameter,
char *assembleTargetUrl(const char *basePath,
const char *operationParameter,
list_t *queryParameters) {
int neededBufferSizeForQueryParameters = 0;
listEntry_t *listEntry;
Expand Down Expand Up @@ -182,7 +182,7 @@ char *assembleHeaderField(char *key, char *value) {
return header;
}

void postData(CURL *handle, char *bodyParameters) {
void postData(CURL *handle, const char *bodyParameters) {
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, bodyParameters);
curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE_LARGE,
strlen(bodyParameters));
Expand All @@ -201,14 +201,14 @@ int lengthOfKeyPair(keyValuePair_t *keyPair) {


void apiClient_invoke(apiClient_t *apiClient,
char *operationParameter,
const char *operationParameter,
list_t *queryParameters,
list_t *headerParameters,
list_t *formParameters,
list_t *headerType,
list_t *contentType,
char *bodyParameters,
char *requestType) {
const char *bodyParameters,
const char *requestType) {
CURL *handle = curl_easy_init();
CURLcode res;

Expand Down
4 changes: 2 additions & 2 deletions settings
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Kubernetes branch/tag to get the OpenAPI spec from.
export KUBERNETES_BRANCH="v1.22.1"
export KUBERNETES_BRANCH="v1.23.5"

# client version for packaging and releasing. It can
# be different than SPEC_VERSION.
export CLIENT_VERSION="0.1.0"
export CLIENT_VERSION="0.3.0"

# Name of the release package
export PACKAGE_NAME="client"
Expand Down

0 comments on commit 5e7b41d

Please sign in to comment.