Skip to content

Commit

Permalink
removed duplicated z_config_default (it's called in parsing args later)
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Aug 17, 2024
1 parent ebe6b89 commit f8babaa
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion examples/z_delete.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

printf("Opening session...\n");
Expand Down
1 change: 0 additions & 1 deletion examples/z_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

z_view_keyexpr_t keyexpr;
Expand Down
1 change: 0 additions & 1 deletion examples/z_get_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

z_view_keyexpr_t keyexpr;
Expand Down
1 change: 0 additions & 1 deletion examples/z_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ void print_zid(const z_id_t* id, void* ctx) {

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
parse_args(argc, argv, &config);

printf("Opening session...\n");
Expand Down
1 change: 0 additions & 1 deletion examples/z_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

z_view_keyexpr_t keyexpr;
Expand Down
1 change: 0 additions & 1 deletion examples/z_non_blocking_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

z_view_keyexpr_t keyexpr;
Expand Down
1 change: 0 additions & 1 deletion examples/z_pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ void matching_status_handler(const zc_matching_status_t* matching_status, void*

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

printf("Opening session...\n");
Expand Down
1 change: 0 additions & 1 deletion examples/z_pub_attachment.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

printf("Opening session...\n");
Expand Down
1 change: 0 additions & 1 deletion examples/z_pub_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

if (zc_config_insert_json(z_loan_mut(config), Z_CONFIG_ADD_TIMESTAMP_KEY, "true") < 0) {
Expand Down
2 changes: 0 additions & 2 deletions examples/z_pub_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config);

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);


printf("Opening session...\n");
z_owned_session_t s;
if (z_open(&s, z_move(config)) < 0) {
Expand Down
1 change: 0 additions & 1 deletion examples/z_pub_thr.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ int main(int argc, char** argv) {
char* keyexpr = "test/thr";

z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);
uint8_t* value = (uint8_t*)z_malloc(args.size);
memset(value, 1, args.size);
Expand Down
1 change: 0 additions & 1 deletion examples/z_query_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ void data_handler(const z_loaned_sample_t* sample, void* arg) {

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

printf("Opening session...\n");
Expand Down
1 change: 0 additions & 1 deletion examples/z_queryable_with_channels.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ z_view_keyexpr_t ke;

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);

printf("Opening session...\n");
Expand Down
1 change: 0 additions & 1 deletion examples/z_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ void data_handler(const z_loaned_sample_t *sample, void *arg) {

int main(int argc, char **argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);
z_view_keyexpr_t ke;
z_view_keyexpr_from_str(&ke, args.keyexpr);
Expand Down
1 change: 0 additions & 1 deletion examples/z_sub_attachment.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ void data_handler(const z_loaned_sample_t* sample, void* arg) {

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);
z_view_keyexpr_t ke;
z_view_keyexpr_from_str(&ke, args.keyexpr);
Expand Down
1 change: 0 additions & 1 deletion examples/z_sub_liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ void data_handler(const z_loaned_sample_t* sample, void* arg) {

int main(int argc, char** argv) {
z_owned_config_t config;
z_config_default(&config);
struct args_t args = parse_args(argc, argv, &config);
z_view_keyexpr_t ke;
if (z_view_keyexpr_from_str(&ke, args.keyexpr) < 0) {
Expand Down
1 change: 0 additions & 1 deletion examples/z_sub_thr.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ void drop_stats(void *context) {

int main(int argc, char **argv) {
z_owned_config_t config;
z_config_default(&config);
parse_args(argc, argv, &config);

#ifdef SHARED_MEMORY
Expand Down

0 comments on commit f8babaa

Please sign in to comment.