Format new register code correctly
This commit is contained in:
@@ -60,6 +60,6 @@ scan-view ...
|
||||
### Finding typos
|
||||
|
||||
We include a `.codespellrc` configuration file for `codespell` in the root directory.
|
||||
Before comitting it might make sense to run `codespell` to see if you made any typos.
|
||||
Before committing it might make sense to run `codespell` to see if you made any typos.
|
||||
|
||||
You can run the `make spell` command for this.
|
||||
|
||||
@@ -3032,4 +3032,3 @@ command_mangen(void)
|
||||
g_free(header);
|
||||
g_list_free(cmds);
|
||||
}
|
||||
|
||||
|
||||
@@ -9599,4 +9599,3 @@ cmd_register(ProfWin* window, const char* const command, gchar** args)
|
||||
log_info("we are leaving the registration process");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
@@ -250,4 +250,3 @@ gboolean cmd_silence(ProfWin* window, const char* const command, gchar** args);
|
||||
gboolean cmd_register(ProfWin* window, const char* const command, gchar** args);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -262,4 +262,3 @@ cl_ev_send_priv_msg(ProfPrivateWin* privwin, const char* const msg, const char*
|
||||
jid_destroy(jidp);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,4 +52,3 @@ void cl_ev_send_muc_msg(ProfMucWin* mucwin, const char* const msg, const char* c
|
||||
void cl_ev_send_priv_msg(ProfPrivateWin* privwin, const char* const msg, const char* const oob_url);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -268,4 +268,3 @@ _shutdown(void)
|
||||
ui_close();
|
||||
prefs_close();
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,8 @@ typedef struct prof_conn_t
|
||||
GHashTable* requested_features;
|
||||
} ProfConnection;
|
||||
|
||||
typedef struct {
|
||||
typedef struct
|
||||
{
|
||||
const char* username;
|
||||
const char* password;
|
||||
} prof_reg_t;
|
||||
@@ -251,7 +252,8 @@ connection_connect(const char* const jid, const char* const passwd, const char*
|
||||
return conn.conn_status;
|
||||
}
|
||||
|
||||
static int iq_reg2_cb(xmpp_conn_t *xmpp_conn, xmpp_stanza_t *stanza, void *userdata)
|
||||
static int
|
||||
iq_reg2_cb(xmpp_conn_t* xmpp_conn, xmpp_stanza_t* stanza, void* userdata)
|
||||
{
|
||||
const char* type;
|
||||
|
||||
@@ -280,7 +282,8 @@ quit:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int iq_reg_cb(xmpp_conn_t *xmpp_conn, xmpp_stanza_t *stanza, void *userdata)
|
||||
static int
|
||||
iq_reg_cb(xmpp_conn_t* xmpp_conn, xmpp_stanza_t* stanza, void* userdata)
|
||||
{
|
||||
prof_reg_t* reg = (prof_reg_t*)userdata;
|
||||
xmpp_stanza_t* registered = NULL;
|
||||
@@ -333,7 +336,8 @@ _register_handle_error(xmpp_conn_t *xmpp_conn, xmpp_stanza_t *stanza, void *user
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _register_handle_proceedtls_default(xmpp_conn_t *xmpp_conn,
|
||||
static int
|
||||
_register_handle_proceedtls_default(xmpp_conn_t* xmpp_conn,
|
||||
xmpp_stanza_t* stanza,
|
||||
void* userdata)
|
||||
{
|
||||
@@ -355,7 +359,8 @@ static int _register_handle_proceedtls_default(xmpp_conn_t *xmpp_conn,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int _register_handle_missing_features(xmpp_conn_t *xmpp_conn, void *userdata)
|
||||
static int
|
||||
_register_handle_missing_features(xmpp_conn_t* xmpp_conn, void* userdata)
|
||||
{
|
||||
(void)userdata;
|
||||
|
||||
@@ -468,7 +473,6 @@ _register_handler(xmpp_conn_t *xmpp_conn,
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1109,4 +1113,3 @@ connection_get_profanity_identifier(void)
|
||||
{
|
||||
return prof_identifier;
|
||||
}
|
||||
|
||||
|
||||
@@ -70,4 +70,3 @@ void connection_remove_available_resource(const char* const resource);
|
||||
char* connection_create_stanza_id(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2804,4 +2804,3 @@ iq_muc_register_nick(const char* const roomjid)
|
||||
xmpp_stanza_release(iq);
|
||||
xmpp_stanza_release(query);
|
||||
}
|
||||
|
||||
|
||||
@@ -545,4 +545,3 @@ _session_free_saved_details(void)
|
||||
FREE_SET_NULL(saved_details.tls_policy);
|
||||
FREE_SET_NULL(saved_details.auth_policy);
|
||||
}
|
||||
|
||||
|
||||
@@ -2924,4 +2924,3 @@ stanza_get_service_contact_addresses(xmpp_ctx_t* ctx, xmpp_stanza_t* stanza)
|
||||
|
||||
return addresses;
|
||||
}
|
||||
|
||||
|
||||
@@ -415,4 +415,3 @@ xmpp_stanza_t* stanza_create_approve_voice(xmpp_ctx_t* ctx, const char* const id
|
||||
xmpp_stanza_t* stanza_create_muc_register_nick(xmpp_ctx_t* ctx, const char* const id, const char* const jid, const char* const node, DataForm* form);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -316,4 +316,3 @@ Autocomplete form_get_value_ac(DataForm* form, const char* const tag);
|
||||
void form_reset_autocompleters(DataForm* form);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user