mirror of
https://github.com/transmission/transmission
synced 2025-01-30 19:03:04 +00:00
Reformat affected code after recent changes
This commit is contained in:
parent
75458d6be3
commit
b7a8bd45b7
14 changed files with 35 additions and 52 deletions
|
@ -135,8 +135,8 @@ static char* tr_strlratio(char* buf, double ratio, size_t buflen)
|
|||
|
||||
static bool waitingOnWeb;
|
||||
|
||||
static void onTorrentFileDownloaded(tr_session* session, bool did_connect, bool did_timeout,
|
||||
long response_code, void const* response, size_t response_byte_count, void* ctor)
|
||||
static void onTorrentFileDownloaded(tr_session* session, bool did_connect, bool did_timeout, long response_code,
|
||||
void const* response, size_t response_byte_count, void* ctor)
|
||||
{
|
||||
TR_UNUSED(session);
|
||||
TR_UNUSED(did_connect);
|
||||
|
|
|
@ -359,8 +359,8 @@ static void periodicUpdate(evutil_socket_t fd, short what, void* context)
|
|||
reportStatus();
|
||||
}
|
||||
|
||||
static tr_rpc_callback_status on_rpc_callback(tr_session* session, tr_rpc_callback_type type,
|
||||
struct tr_torrent* tor, void* user_data)
|
||||
static tr_rpc_callback_status on_rpc_callback(tr_session* session, tr_rpc_callback_type type, struct tr_torrent* tor,
|
||||
void* user_data)
|
||||
{
|
||||
TR_UNUSED(session);
|
||||
TR_UNUSED(tor);
|
||||
|
|
|
@ -118,8 +118,8 @@ static gboolean favicon_web_done_idle_cb(gpointer vfav)
|
|||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
static void favicon_web_done_cb(tr_session* session, bool did_connect, bool did_timeout, long code,
|
||||
void const* data, size_t len, void* vfav)
|
||||
static void favicon_web_done_cb(tr_session* session, bool did_connect, bool did_timeout, long code, void const* data,
|
||||
size_t len, void* vfav)
|
||||
{
|
||||
TR_UNUSED(session);
|
||||
TR_UNUSED(did_connect);
|
||||
|
|
13
gtk/filter.c
13
gtk/filter.c
|
@ -330,8 +330,7 @@ static void tracker_model_update_idle(gpointer tracker_model)
|
|||
}
|
||||
}
|
||||
|
||||
static void torrent_model_row_changed(GtkTreeModel* tmodel, GtkTreePath* path, GtkTreeIter* iter,
|
||||
gpointer tracker_model)
|
||||
static void torrent_model_row_changed(GtkTreeModel* tmodel, GtkTreePath* path, GtkTreeIter* iter, gpointer tracker_model)
|
||||
{
|
||||
TR_UNUSED(tmodel);
|
||||
TR_UNUSED(path);
|
||||
|
@ -629,8 +628,8 @@ static GtkTreeModel* activity_filter_model_new(GtkTreeModel* tmodel)
|
|||
return GTK_TREE_MODEL(store);
|
||||
}
|
||||
|
||||
static void render_activity_pixbuf_func(GtkCellLayout* cell_layout, GtkCellRenderer* cell_renderer,
|
||||
GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer data)
|
||||
static void render_activity_pixbuf_func(GtkCellLayout* cell_layout, GtkCellRenderer* cell_renderer, GtkTreeModel* tree_model,
|
||||
GtkTreeIter* iter, gpointer data)
|
||||
{
|
||||
TR_UNUSED(cell_layout);
|
||||
TR_UNUSED(data);
|
||||
|
@ -669,8 +668,7 @@ static void activity_torrent_model_row_changed(GtkTreeModel* tmodel, GtkTreePath
|
|||
activity_model_update_idle(activity_model);
|
||||
}
|
||||
|
||||
static void activity_torrent_model_row_deleted_cb(GtkTreeModel* tmodel, GtkTreePath* path,
|
||||
gpointer activity_model)
|
||||
static void activity_torrent_model_row_deleted_cb(GtkTreeModel* tmodel, GtkTreePath* path, gpointer activity_model)
|
||||
{
|
||||
TR_UNUSED(tmodel);
|
||||
TR_UNUSED(path);
|
||||
|
@ -931,8 +929,7 @@ static void update_count_label_idle(struct filter_data* data)
|
|||
}
|
||||
}
|
||||
|
||||
static void on_filter_model_row_inserted(GtkTreeModel* tree_model, GtkTreePath* path, GtkTreeIter* iter,
|
||||
gpointer data)
|
||||
static void on_filter_model_row_inserted(GtkTreeModel* tree_model, GtkTreePath* path, GtkTreeIter* iter, gpointer data)
|
||||
{
|
||||
TR_UNUSED(tree_model);
|
||||
TR_UNUSED(path);
|
||||
|
|
|
@ -191,8 +191,7 @@ struct counts_data
|
|||
int stopped_count;
|
||||
};
|
||||
|
||||
static void get_selected_torrent_counts_foreach(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter,
|
||||
gpointer user_data)
|
||||
static void get_selected_torrent_counts_foreach(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer user_data)
|
||||
{
|
||||
TR_UNUSED(path);
|
||||
|
||||
|
@ -223,8 +222,7 @@ static void get_selected_torrent_counts(struct cbdata* data, struct counts_data*
|
|||
gtk_tree_selection_selected_foreach(data->sel, get_selected_torrent_counts_foreach, counts);
|
||||
}
|
||||
|
||||
static void count_updatable_foreach(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter,
|
||||
gpointer accumulated_status)
|
||||
static void count_updatable_foreach(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer accumulated_status)
|
||||
{
|
||||
TR_UNUSED(path);
|
||||
|
||||
|
|
|
@ -570,8 +570,7 @@ static void gtr_cell_renderer_render(GtkCellRenderer* renderer, GtrDrawable* dra
|
|||
}
|
||||
|
||||
static void render_compact(TorrentCellRenderer* cell, GtrDrawable* window, GtkWidget* widget,
|
||||
GdkRectangle const* background_area, GdkRectangle const* cell_area,
|
||||
GtkCellRendererState flags)
|
||||
GdkRectangle const* background_area, GdkRectangle const* cell_area, GtkCellRendererState flags)
|
||||
{
|
||||
TR_UNUSED(cell_area);
|
||||
|
||||
|
|
|
@ -801,8 +801,8 @@ static void core_watchdir_monitor_file(TrCore* core, GFile* file)
|
|||
}
|
||||
|
||||
/* GFileMonitor noticed a file was created */
|
||||
static void on_file_changed_in_watchdir(GFileMonitor* monitor, GFile* file, GFile* other_type,
|
||||
GFileMonitorEvent event_type, gpointer core)
|
||||
static void on_file_changed_in_watchdir(GFileMonitor* monitor, GFile* file, GFile* other_type, GFileMonitorEvent event_type,
|
||||
gpointer core)
|
||||
{
|
||||
TR_UNUSED(monitor);
|
||||
TR_UNUSED(other_type);
|
||||
|
|
|
@ -88,8 +88,7 @@ static void on_popup_menu(GtkWidget* self, GdkEventButton* event)
|
|||
#endif
|
||||
}
|
||||
|
||||
static void view_row_activated(GtkTreeView* tree_view, GtkTreePath* path, GtkTreeViewColumn* column,
|
||||
gpointer user_data)
|
||||
static void view_row_activated(GtkTreeView* tree_view, GtkTreePath* path, GtkTreeViewColumn* column, gpointer user_data)
|
||||
{
|
||||
TR_UNUSED(tree_view);
|
||||
TR_UNUSED(path);
|
||||
|
@ -302,8 +301,8 @@ static void findMaxAnnounceTime(GtkTreeModel* model, GtkTreePath* path, GtkTreeI
|
|||
*maxTime = MAX(*maxTime, torStat->manualAnnounceTime);
|
||||
}
|
||||
|
||||
static gboolean onAskTrackerQueryTooltip(GtkWidget* widget, gint x, gint y, gboolean keyboard_tip,
|
||||
GtkTooltip* tooltip, gpointer gdata)
|
||||
static gboolean onAskTrackerQueryTooltip(GtkWidget* widget, gint x, gint y, gboolean keyboard_tip, GtkTooltip* tooltip,
|
||||
gpointer gdata)
|
||||
{
|
||||
TR_UNUSED(widget);
|
||||
TR_UNUSED(x);
|
||||
|
|
|
@ -359,8 +359,7 @@ struct tr_peer_socket tr_netOpenPeerSocket(tr_session* session, tr_address const
|
|||
return ret;
|
||||
}
|
||||
|
||||
struct tr_peer_socket tr_netOpenPeerUTPSocket(tr_session* session, tr_address const* addr, tr_port port,
|
||||
bool clientIsSeed)
|
||||
struct tr_peer_socket tr_netOpenPeerUTPSocket(tr_session* session, tr_address const* addr, tr_port port, bool clientIsSeed)
|
||||
{
|
||||
TR_UNUSED(clientIsSeed);
|
||||
|
||||
|
|
|
@ -1611,8 +1611,7 @@ static void addStrike(tr_swarm* s, tr_peer* peer)
|
|||
}
|
||||
}
|
||||
|
||||
static void peerSuggestedPiece(tr_swarm* s, tr_peer* peer, tr_piece_index_t pieceIndex,
|
||||
int isFastAllowed)
|
||||
static void peerSuggestedPiece(tr_swarm* s, tr_peer* peer, tr_piece_index_t pieceIndex, int isFastAllowed)
|
||||
{
|
||||
TR_UNUSED(s);
|
||||
|
||||
|
|
|
@ -1611,8 +1611,8 @@ static char const* torrentRenamePath(tr_session* session, tr_variant* args_in, t
|
|||
****
|
||||
***/
|
||||
|
||||
static void portTested(tr_session* session, bool did_connect, bool did_timeout, long response_code,
|
||||
void const* response, size_t response_byte_count, void* user_data)
|
||||
static void portTested(tr_session* session, bool did_connect, bool did_timeout, long response_code, void const* response,
|
||||
size_t response_byte_count, void* user_data)
|
||||
{
|
||||
TR_UNUSED(session);
|
||||
TR_UNUSED(did_connect);
|
||||
|
@ -1636,8 +1636,7 @@ static void portTested(tr_session* session, bool did_connect, bool did_timeout,
|
|||
tr_idle_function_done(data, result);
|
||||
}
|
||||
|
||||
static char const* portTest(tr_session* session, tr_variant* args_in, tr_variant* args_out,
|
||||
struct tr_rpc_idle_data* idle_data)
|
||||
static char const* portTest(tr_session* session, tr_variant* args_in, tr_variant* args_out, struct tr_rpc_idle_data* idle_data)
|
||||
{
|
||||
TR_UNUSED(args_in);
|
||||
TR_UNUSED(args_out);
|
||||
|
@ -1653,8 +1652,8 @@ static char const* portTest(tr_session* session, tr_variant* args_in, tr_variant
|
|||
****
|
||||
***/
|
||||
|
||||
static void gotNewBlocklist(tr_session* session, bool did_connect, bool did_timeout, long response_code,
|
||||
void const* response, size_t response_byte_count, void* user_data)
|
||||
static void gotNewBlocklist(tr_session* session, bool did_connect, bool did_timeout, long response_code, void const* response,
|
||||
size_t response_byte_count, void* user_data)
|
||||
{
|
||||
TR_UNUSED(did_connect);
|
||||
TR_UNUSED(did_timeout);
|
||||
|
@ -2563,8 +2562,7 @@ static void addSessionField(tr_session* s, tr_variant* d, tr_quark key)
|
|||
}
|
||||
}
|
||||
|
||||
static char const* sessionGet(tr_session* s, tr_variant* args_in, tr_variant* args_out,
|
||||
struct tr_rpc_idle_data* idle_data)
|
||||
static char const* sessionGet(tr_session* s, tr_variant* args_in, tr_variant* args_out, struct tr_rpc_idle_data* idle_data)
|
||||
{
|
||||
TR_UNUSED(idle_data);
|
||||
|
||||
|
@ -2606,8 +2604,7 @@ static char const* sessionGet(tr_session* s, tr_variant* args_in, tr_variant* ar
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static char const* freeSpace(tr_session* session, tr_variant* args_in, tr_variant* args_out,
|
||||
struct tr_rpc_idle_data* idle_data)
|
||||
static char const* freeSpace(tr_session* session, tr_variant* args_in, tr_variant* args_out, struct tr_rpc_idle_data* idle_data)
|
||||
{
|
||||
TR_UNUSED(idle_data);
|
||||
|
||||
|
|
|
@ -65,8 +65,7 @@ bool UTP_Write(struct UTPSocket* socket, size_t count)
|
|||
return false;
|
||||
}
|
||||
|
||||
int tr_utpPacket(unsigned char const* buf, size_t buflen, struct sockaddr const* from,
|
||||
socklen_t fromlen, tr_session* ss)
|
||||
int tr_utpPacket(unsigned char const* buf, size_t buflen, struct sockaddr const* from, socklen_t fromlen, tr_session* ss)
|
||||
{
|
||||
TR_UNUSED(buf);
|
||||
TR_UNUSED(buflen);
|
||||
|
@ -77,8 +76,7 @@ int tr_utpPacket(unsigned char const* buf, size_t buflen, struct sockaddr const*
|
|||
return -1;
|
||||
}
|
||||
|
||||
struct UTPSocket* UTP_Create(SendToProc* send_to_proc, void* send_to_userdata, struct sockaddr const* addr,
|
||||
socklen_t addrlen)
|
||||
struct UTPSocket* UTP_Create(SendToProc* send_to_proc, void* send_to_userdata, struct sockaddr const* addr, socklen_t addrlen)
|
||||
{
|
||||
TR_UNUSED(send_to_proc);
|
||||
TR_UNUSED(send_to_userdata);
|
||||
|
@ -94,8 +92,7 @@ void tr_utpClose(tr_session* ss)
|
|||
TR_UNUSED(ss);
|
||||
}
|
||||
|
||||
void tr_utpSendTo(void* closure, unsigned char const* buf, size_t buflen, struct sockaddr const* to,
|
||||
socklen_t tolen)
|
||||
void tr_utpSendTo(void* closure, unsigned char const* buf, size_t buflen, struct sockaddr const* to, socklen_t tolen)
|
||||
{
|
||||
TR_UNUSED(closure);
|
||||
TR_UNUSED(buf);
|
||||
|
|
|
@ -102,8 +102,7 @@ static int error_callback(jsonsl_t jsn, jsonsl_error_t error, struct jsonsl_stat
|
|||
return 0; /* bail */
|
||||
}
|
||||
|
||||
static void action_callback_PUSH(jsonsl_t jsn, jsonsl_action_t action, struct jsonsl_state_st* state,
|
||||
jsonsl_char_t const* buf)
|
||||
static void action_callback_PUSH(jsonsl_t jsn, jsonsl_action_t action, struct jsonsl_state_st* state, jsonsl_char_t const* buf)
|
||||
{
|
||||
TR_UNUSED(action);
|
||||
TR_UNUSED(buf);
|
||||
|
@ -303,8 +302,7 @@ static char const* extract_string(jsonsl_t jsn, struct jsonsl_state_st* state, s
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void action_callback_POP(jsonsl_t jsn, jsonsl_action_t action, struct jsonsl_state_st* state,
|
||||
jsonsl_char_t const* buf)
|
||||
static void action_callback_POP(jsonsl_t jsn, jsonsl_action_t action, struct jsonsl_state_st* state, jsonsl_char_t const* buf)
|
||||
{
|
||||
TR_UNUSED(action);
|
||||
TR_UNUSED(buf);
|
||||
|
|
|
@ -361,8 +361,8 @@ static void on_idle(tr_webseed* w)
|
|||
}
|
||||
}
|
||||
|
||||
static void web_response_func(tr_session* session, bool did_connect, bool did_timeout, long response_code,
|
||||
void const* response, size_t response_byte_count, void* vtask)
|
||||
static void web_response_func(tr_session* session, bool did_connect, bool did_timeout, long response_code, void const* response,
|
||||
size_t response_byte_count, void* vtask)
|
||||
{
|
||||
TR_UNUSED(did_connect);
|
||||
TR_UNUSED(did_timeout);
|
||||
|
|
Loading…
Reference in a new issue