Skip to content

Commit 74387b1

Browse files
committed
Update some variables definition to fit orcania o_strstr* and o_strchr* nmew return values
1 parent e8a4877 commit 74387b1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/u_websocket.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,8 @@ static int ulfius_get_next_line_from_http_response(struct _websocket * websocket
861861
static int ulfius_websocket_connection_handshake(struct _u_request * request, struct yuarel * y_url, struct _websocket * websocket, struct _u_response * response) {
862862
int websocket_response_http = 0, ret, extension_enabled;
863863
unsigned int websocket_response = 0, check_websocket = WEBSOCKET_RESPONSE_UPGRADE | WEBSOCKET_RESPONSE_CONNECTION | WEBSOCKET_RESPONSE_ACCEPT;
864-
char * http_line, ** split_line = NULL, * key, * value, * separator, ** extension_list = NULL, * endptr = NULL;
864+
char * http_line, ** split_line = NULL, * key, * value, ** extension_list = NULL, * endptr = NULL;
865+
const char * separator;
865866
char buffer[U_WEBSOCKET_RESPONSE_BUFFER_LEN+1] = {0};
866867
const char ** keys;
867868
size_t buffer_len = U_WEBSOCKET_RESPONSE_BUFFER_LEN, line_len, extension_len, i, j;

tools/uwsc/uwsc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ int main (int argc, char ** argv) {
306306

307307
// TODO: Complete option manager
308308
do {
309-
char * key, * value;
309+
char * key;
310+
const char * value;
310311
next_option = getopt_long(argc, argv, short_options, long_options, NULL);
311312

312313
switch (next_option) {

0 commit comments

Comments
 (0)