Skip to content

Commit

Permalink
Rename osc-sdk-C to osc-sdk-c
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Feb 1, 2023
1 parent f635267 commit 8257245
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

configure COGNAC using `./configure`, then use either `cognac_gen.sh SOURCE DEST LANGUAGE` directly, or the Makefile.

*note: the primary use of this repo, is to generate source code, do not use this repo if your goal is to compile [osc-sdk-c](https://github.com/outscale/osc-sdk-C) or oapi-cli, but use they own repo instead, that take care of the code generation for you*
*note: the primary use of this repo, is to generate source code, do not use this repo if your goal is to compile [osc-sdk-c](https://github.com/outscale/osc-sdk-c) or oapi-cli, but use they own repo instead, that take care of the code generation for you*

## Dependency

Expand Down
4 changes: 2 additions & 2 deletions lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ int osc_init_sdk(struct osc_env *e, const char *profile, unsigned int flag)
char *endpoint;
char *env_ak = getenv("OSC_ACCESS_KEY");
char *env_sk = getenv("OSC_SECRET_KEY");
char user_agent[sizeof "osc-sdk-C/" + OSC_SDK_VERSON_L];
char user_agent[sizeof "osc-sdk-c/" + OSC_SDK_VERSON_L];
char *cert = getenv("OSC_X509_CLIENT_CERT");
char *sslkey = getenv("OSC_X509_CLIENT_KEY");

strcpy(stpcpy(user_agent, "osc-sdk-C/"), osc_sdk_version_str());
strcpy(stpcpy(user_agent, "osc-sdk-c/"), osc_sdk_version_str());
e->region = getenv("OSC_REGION");
e->flag = flag;
endpoint = getenv("OSC_ENDPOINT_API");
Expand Down

0 comments on commit 8257245

Please sign in to comment.