Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate some compiler warnings #119

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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