Skip to content

Commit

Permalink
update COGNAC and osc-sdk-c
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Jan 16, 2024
1 parent f64fa86 commit 3e8b9fb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion COGNAC
Submodule COGNAC updated 4 files
+1 −1 cognac_gen.sh
+1 −1 construct_data.c.sh
+17 −3 lib.c
+1 −1 mk_args.c.sh
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2260,11 +2260,11 @@ int filters_net_parser(void *v_s, char *str, char *aa, struct ptr_array *pa) {
SET_NEXT(s->ip_ranges, (aa), pa);
} else
if ((aret = argcmp(str, "IsDefault")) == 0 || aret == '=') {
s->is_set_is_default_arg = 1;
s->is_set_is_default = 1;
if (!aa || !strcasecmp(aa, "true")) {
s->is_default_arg = 1;
s->is_default = 1;
} else if (!strcasecmp(aa, "false")) {
s->is_default_arg = 0;
s->is_default = 0;
} else {
BAD_RET("IsDefault require true/false\n");
}
Expand Down
2 changes: 1 addition & 1 deletion osc-sdk-C
Submodule osc-sdk-C updated 3 files
+1 −1 COGNAC
+2 −2 osc_sdk.c
+2 −2 osc_sdk.h
4 changes: 2 additions & 2 deletions osc_sdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -6874,8 +6874,8 @@ static int filters_net_setter(struct filters_net *args, struct osc_str *data) {
ARG_TO_JSON(IpRanges, string, args->ip_ranges_str);
ret += 1;
}
if (args->is_set_is_default_arg) {
ARG_TO_JSON(IsDefault, bool, args->is_default_arg);
if (args->is_set_is_default) {
ARG_TO_JSON(IsDefault, bool, args->is_default);
ret += 1;
}
if (args->net_ids) {
Expand Down
4 changes: 2 additions & 2 deletions osc_sdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -1538,8 +1538,8 @@ struct filters_net {
/*
* If true, the Net used is the default one.
*/
int is_set_is_default_arg;
int is_default_arg; /* bool */
int is_set_is_default;
int is_default; /* bool */
/*
* The IDs of the Nets.
*/
Expand Down

0 comments on commit 3e8b9fb

Please sign in to comment.