mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[auth] cast
This commit is contained in:
parent
05e65b0878
commit
5fbead7f51
@ -301,7 +301,7 @@ free_auth(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (!list_empty(auth_entry_list))
|
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);
|
free_list(questions_queue);
|
||||||
}
|
}
|
||||||
|
@ -31,9 +31,9 @@
|
|||||||
static void
|
static void
|
||||||
auth_ok(void *data)
|
auth_ok(void *data)
|
||||||
{
|
{
|
||||||
struct dialog *dlg = data;
|
struct dialog *dlg = (struct dialog *)data;
|
||||||
struct auth_entry *entry = dlg->udata2;
|
struct auth_entry *entry = (struct auth_entry *)dlg->udata2;
|
||||||
struct session *ses = dlg->udata;
|
struct session *ses = (struct session *)dlg->udata;
|
||||||
|
|
||||||
entry->blocked = 0;
|
entry->blocked = 0;
|
||||||
entry->valid = auth_entry_has_userinfo(entry);
|
entry->valid = auth_entry_has_userinfo(entry);
|
||||||
@ -90,7 +90,7 @@ auth_ok(void *data)
|
|||||||
static void
|
static void
|
||||||
auth_cancel(void *data)
|
auth_cancel(void *data)
|
||||||
{
|
{
|
||||||
struct auth_entry *entry = data;
|
struct auth_entry *entry = (struct auth_entry *)data;
|
||||||
|
|
||||||
entry->blocked = 0;
|
entry->blocked = 0;
|
||||||
del_auth_entry(entry);
|
del_auth_entry(entry);
|
||||||
@ -190,7 +190,7 @@ is_auth_entry_used(struct listbox_item *item)
|
|||||||
static char *
|
static char *
|
||||||
get_auth_entry_text(struct listbox_item *item, struct terminal *term)
|
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);
|
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 *
|
static char *
|
||||||
get_auth_entry_info(struct listbox_item *item, struct terminal *term)
|
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;
|
struct string info;
|
||||||
|
|
||||||
if (item->type == BI_FOLDER) return NULL;
|
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 *
|
static struct uri *
|
||||||
get_auth_entry_uri(struct listbox_item *item)
|
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);
|
return get_composed_uri(auth_entry->uri, URI_HTTP_AUTH);
|
||||||
}
|
}
|
||||||
@ -251,7 +251,7 @@ can_delete_auth_entry(struct listbox_item *item)
|
|||||||
static void
|
static void
|
||||||
delete_auth_entry(struct listbox_item *item, int last)
|
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));
|
assert(!is_object_used(auth_entry));
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ static void
|
|||||||
smb_got_error(struct socket *socket, struct read_buffer *rb)
|
smb_got_error(struct socket *socket, struct read_buffer *rb)
|
||||||
{
|
{
|
||||||
int len = rb->length;
|
int len = rb->length;
|
||||||
struct connection *conn = socket->conn;
|
struct connection *conn = (struct connection *)socket->conn;
|
||||||
struct connection_state error;
|
struct connection_state error;
|
||||||
|
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
@ -411,7 +411,7 @@ static void
|
|||||||
smb_got_data(struct socket *socket, struct read_buffer *rb)
|
smb_got_data(struct socket *socket, struct read_buffer *rb)
|
||||||
{
|
{
|
||||||
int len = rb->length;
|
int len = rb->length;
|
||||||
struct connection *conn = socket->conn;
|
struct connection *conn = (struct connection *)socket->conn;
|
||||||
|
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
abort_connection(conn, connection_state_for_errno(errno));
|
abort_connection(conn, connection_state_for_errno(errno));
|
||||||
@ -436,7 +436,7 @@ smb_got_data(struct socket *socket, struct read_buffer *rb)
|
|||||||
static void
|
static void
|
||||||
smb_got_header(struct socket *socket, struct read_buffer *rb)
|
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;
|
struct read_buffer *buf;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user