1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[auth] cast

This commit is contained in:
Witold Filipczyk 2022-01-26 17:21:42 +01:00
parent 05e65b0878
commit 5fbead7f51
3 changed files with 12 additions and 12 deletions

View File

@ -301,7 +301,7 @@ free_auth(void)
#endif
while (!list_empty(auth_entry_list))
del_auth_entry(auth_entry_list.next);
del_auth_entry((struct auth_entry *)auth_entry_list.next);
free_list(questions_queue);
}

View File

@ -31,9 +31,9 @@
static void
auth_ok(void *data)
{
struct dialog *dlg = data;
struct auth_entry *entry = dlg->udata2;
struct session *ses = dlg->udata;
struct dialog *dlg = (struct dialog *)data;
struct auth_entry *entry = (struct auth_entry *)dlg->udata2;
struct session *ses = (struct session *)dlg->udata;
entry->blocked = 0;
entry->valid = auth_entry_has_userinfo(entry);
@ -90,7 +90,7 @@ auth_ok(void *data)
static void
auth_cancel(void *data)
{
struct auth_entry *entry = data;
struct auth_entry *entry = (struct auth_entry *)data;
entry->blocked = 0;
del_auth_entry(entry);
@ -190,7 +190,7 @@ is_auth_entry_used(struct listbox_item *item)
static char *
get_auth_entry_text(struct listbox_item *item, struct terminal *term)
{
struct auth_entry *auth_entry = item->udata;
struct auth_entry *auth_entry = (struct auth_entry *)item->udata;
return get_uri_string(auth_entry->uri, URI_HTTP_AUTH);
}
@ -198,7 +198,7 @@ get_auth_entry_text(struct listbox_item *item, struct terminal *term)
static char *
get_auth_entry_info(struct listbox_item *item, struct terminal *term)
{
struct auth_entry *auth_entry = item->udata;
struct auth_entry *auth_entry = (struct auth_entry *)item->udata;
struct string info;
if (item->type == BI_FOLDER) return NULL;
@ -231,7 +231,7 @@ get_auth_entry_info(struct listbox_item *item, struct terminal *term)
static struct uri *
get_auth_entry_uri(struct listbox_item *item)
{
struct auth_entry *auth_entry = item->udata;
struct auth_entry *auth_entry = (struct auth_entry *)item->udata;
return get_composed_uri(auth_entry->uri, URI_HTTP_AUTH);
}
@ -251,7 +251,7 @@ can_delete_auth_entry(struct listbox_item *item)
static void
delete_auth_entry(struct listbox_item *item, int last)
{
struct auth_entry *auth_entry = item->udata;
struct auth_entry *auth_entry = (struct auth_entry *)item->udata;
assert(!is_object_used(auth_entry));

View File

@ -369,7 +369,7 @@ static void
smb_got_error(struct socket *socket, struct read_buffer *rb)
{
int len = rb->length;
struct connection *conn = socket->conn;
struct connection *conn = (struct connection *)socket->conn;
struct connection_state error;
if (len < 0) {
@ -411,7 +411,7 @@ static void
smb_got_data(struct socket *socket, struct read_buffer *rb)
{
int len = rb->length;
struct connection *conn = socket->conn;
struct connection *conn = (struct connection *)socket->conn;
if (len < 0) {
abort_connection(conn, connection_state_for_errno(errno));
@ -436,7 +436,7 @@ smb_got_data(struct socket *socket, struct read_buffer *rb)
static void
smb_got_header(struct socket *socket, struct read_buffer *rb)
{
struct connection *conn = socket->conn;
struct connection *conn = (struct connection *)socket->conn;
struct read_buffer *buf;
int error = 0;