Skip to content
Merged
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
7 changes: 1 addition & 6 deletions library/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
if (r->cb != NULL) {
r->cb(conn, status ? status : (ssize_t) r->len, r->ctx);
}
r = model_list_it_element(it);

Check warning on line 255 in library/connect.c

View workflow job for this annotation

GitHub Actions / Linux ARM64

assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

Check warning on line 255 in library/connect.c

View workflow job for this annotation

GitHub Actions / Linux x86_64

assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
it = model_list_it_next(it);
} while(r);
model_list_clear(&req->chain, free);
Expand Down Expand Up @@ -667,7 +667,7 @@
count++;
tot += r->len;

r = model_list_it_element(it);

Check warning on line 670 in library/connect.c

View workflow job for this annotation

GitHub Actions / Linux ARM64

assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

Check warning on line 670 in library/connect.c

View workflow job for this annotation

GitHub Actions / Linux x86_64

assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
it = model_list_it_next(it);
} while(r != NULL);
CONN_LOG(DEBUG, "consolidated %d payloads total_len[%zd]", count, tot);
Expand Down Expand Up @@ -1277,15 +1277,10 @@
ar->cb = accept_cb;
ar->ctx = cb;

TAILQ_INSERT_TAIL(&conn->pending_wreqs, ar, _next);
int rc = ziti_channel_send(ch, content_type, headers, 3,
(const uint8_t *) &clt_conn_id, sizeof(clt_conn_id),
ar);
if (rc == ZITI_OK) {
TAILQ_INSERT_TAIL(&conn->pending_wreqs, ar, _next);
} else {
free(ar);
}

return rc;
}

Expand Down
Loading