Formatting.

This commit is contained in:
Håvard Pettersson 2014-11-22 22:31:32 +01:00
parent 5ff27aeebe
commit df758124dd
2 changed files with 4 additions and 10 deletions

View File

@ -71,9 +71,7 @@ twc_completion_friend(void *data,
tox_get_client_id(profile->tox, friend_numbers[i], tox_id); tox_get_client_id(profile->tox, friend_numbers[i], tox_id);
twc_bin2hex(tox_id, TOX_CLIENT_ID_SIZE, hex_id); twc_bin2hex(tox_id, TOX_CLIENT_ID_SIZE, hex_id);
weechat_hook_completion_list_add(completion, weechat_hook_completion_list_add(completion, hex_id, 0,
hex_id,
0,
WEECHAT_LIST_POS_SORT); WEECHAT_LIST_POS_SORT);
} }
@ -92,9 +90,7 @@ twc_completion_friend(void *data,
name = quoted_name; name = quoted_name;
} }
weechat_hook_completion_list_add(completion, weechat_hook_completion_list_add(completion, name, 0,
name,
0,
WEECHAT_LIST_POS_SORT); WEECHAT_LIST_POS_SORT);
free(name); free(name);
@ -125,8 +121,7 @@ twc_completion_profile(void *data,
{ {
weechat_hook_completion_list_add(completion, weechat_hook_completion_list_add(completion,
item->profile->name, item->profile->name,
0, 0, WEECHAT_LIST_POS_SORT);
WEECHAT_LIST_POS_SORT);
} }
} }

View File

@ -319,8 +319,7 @@ twc_sqlite_friend_requests(struct t_twc_profile *profile)
} }
struct t_twc_friend_request * struct t_twc_friend_request *
twc_sqlite_friend_request_with_id(struct t_twc_profile *profile, twc_sqlite_friend_request_with_id(struct t_twc_profile *profile, int64_t id)
int64_t id)
{ {
int64_t profile_id; int64_t profile_id;
if (!twc_sqlite_profile_id(profile, &profile_id)) if (!twc_sqlite_profile_id(profile, &profile_id))