From cceb25409e21bb885f89aab6e58fd566c5336f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Sat, 11 Oct 2014 12:36:51 +0200 Subject: [PATCH] Formatting. --- src/twc-friend-request.c | 4 +--- src/twc-sqlite.c | 6 ++---- src/twc-tox-callbacks.c | 4 +--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/twc-friend-request.c b/src/twc-friend-request.c index 0cb3c4c..82c33ca 100644 --- a/src/twc-friend-request.c +++ b/src/twc-friend-request.c @@ -58,7 +58,6 @@ twc_friend_request_add(struct t_twc_profile *profile, int rc = twc_sqlite_add_friend_request(profile, request) == -1; - // add to list if (rc == -1) return -2; @@ -89,8 +88,7 @@ twc_friend_request_remove(struct t_twc_friend_request *request) * Get friend request with a given index. */ struct t_twc_friend_request * -twc_friend_request_with_index(struct t_twc_profile *profile, - int64_t index) +twc_friend_request_with_index(struct t_twc_profile *profile, int64_t index) { return twc_sqlite_friend_request_with_id(profile, index); } diff --git a/src/twc-sqlite.c b/src/twc-sqlite.c index 3db673b..deac518 100644 --- a/src/twc-sqlite.c +++ b/src/twc-sqlite.c @@ -332,10 +332,8 @@ twc_sqlite_friend_request_with_id(struct t_twc_profile *profile, "SELECT id, tox_id, message " "FROM friend_requests " "WHERE id == ? AND profile_id == ?"); - sqlite3_bind_int(statement, 1, - id); - sqlite3_bind_int(statement, 2, - profile_id); + sqlite3_bind_int(statement, 1, id); + sqlite3_bind_int(statement, 2, profile_id); struct t_twc_friend_request *request; int rc = sqlite3_step(statement); diff --git a/src/twc-tox-callbacks.c b/src/twc-tox-callbacks.c index 33f6f4c..5eda8b5 100644 --- a/src/twc-tox-callbacks.c +++ b/src/twc-tox-callbacks.c @@ -225,9 +225,7 @@ twc_friend_request_callback(Tox *tox, "%sReceived a friend request from %s with message \"%s\"; " "accept it with \"/friend accept %d\"", weechat_prefix("network"), - hex_address, - message_nt, - rc); + hex_address, message_nt, rc); if (rc == -2) {