{"action":"created","comment":{"url":"https://api.github.com/repos/tux3/qTox/pulls/comments/60319324","id":60319324,"diff_hunk":"@@ -150,7 +150,11 @@ int main(int argc, char *argv[])\n     IPC& ipc = IPC::getInstance();\n #endif\n \n-    sodium_init(); // For the auto-updater\n+    if (sodium_init() == -1) // For the auto-updater","path":"src/main.cpp","position":5,"original_position":5,"commit_id":"a813460a2c210485515243972665f44c9c1b91c6","original_commit_id":"ce5000864c1a56d0695a868e63e400f140850574","user":{"login":"sudden6","id":5585762,"avatar_url":"https://avatars.githubusercontent.com/u/5585762?v=3","gravatar_id":"","url":"https://api.github.com/users/sudden6","html_url":"https://github.com/sudden6","followers_url":"https://api.github.com/users/sudden6/followers","following_url":"https://api.github.com/users/sudden6/following{/other_user}","gists_url":"https://api.github.com/users/sudden6/gists{/gist_id}","starred_url":"https://api.github.com/users/sudden6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudden6/subscriptions","organizations_url":"https://api.github.com/users/sudden6/orgs","repos_url":"https://api.github.com/users/sudden6/repos","events_url":"https://api.github.com/users/sudden6/events{/privacy}","received_events_url":"https://api.github.com/users/sudden6/received_events","type":"User","site_admin":false},"body":"comparing for `== -1` is technically correct, but I think it is better to compare for `< 0` if there are error codes added in the future.","created_at":"2016-04-19T21:57:05Z","updated_at":"2016-04-19T21:57:05Z","html_url":"https://github.com/tux3/qTox/pull/3162#discussion_r60319324","pull_request_url":"https://api.github.com/repos/tux3/qTox/pulls/3162","_links":{"self":{"href":"https://api.github.com/repos/tux3/qTox/pulls/comments/60319324"},"html":{"href":"https://github.com/tux3/qTox/pull/3162#discussion_r60319324"},"pull_request":{"href":"https://api.github.com/repos/tux3/qTox/pulls/3162"}}},"pull_request":{"url":"https://api.github.com/repos/tux3/qTox/pulls/3162","id":67013999,"html_url":"https://github.com/tux3/qTox/pull/3162","diff_url":"https://github.com/tux3/qTox/pull/3162.diff","patch_url":"https://github.com/tux3/qTox/pull/3162.patch","issue_url":"https://api.github.com/repos/tux3/qTox/issues/3162","number":3162,"state":"open","locked":false,"title":"Style fixes","user":{"login":"Diadlo","id":6306608,"avatar_url":"https://avatars.githubusercontent.com/u/6306608?v=3","gravatar_id":"","url":"https://api.github.com/users/Diadlo","html_url":"https://github.com/Diadlo","followers_url":"https://api.github.com/users/Diadlo/followers","following_url":"https://api.github.com/users/Diadlo/following{/other_user}","gists_url":"https://api.github.com/users/Diadlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Diadlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diadlo/subscriptions","organizations_url":"https://api.github.com/users/Diadlo/orgs","repos_url":"https://api.github.com/users/Diadlo/repos","events_url":"https://api.github.com/users/Diadlo/events{/privacy}","received_events_url":"https://api.github.com/users/Diadlo/received_events","type":"User","site_admin":false},"body":"* Changed calls deprecated functions\r\n* Replaced C-style cast to static_cast\r\n* Constructors are made explicit\r\n* Small style changes","created_at":"2016-04-19T13:00:49Z","updated_at":"2016-04-19T21:57:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcbb3c4555cfd5c459115c62691c273ebff2a625","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tux3/qTox/pulls/3162/commits","review_comments_url":"https://api.github.com/repos/tux3/qTox/pulls/3162/comments","review_comment_url":"https://api.github.com/repos/tux3/qTox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tux3/qTox/issues/3162/comments","statuses_url":"https://api.github.com/repos/tux3/qTox/statuses/a813460a2c210485515243972665f44c9c1b91c6","head":{"label":"Diadlo:styleFixes","ref":"styleFixes","sha":"a813460a2c210485515243972665f44c9c1b91c6","user":{"login":"Diadlo","id":6306608,"avatar_url":"https://avatars.githubusercontent.com/u/6306608?v=3","gravatar_id":"","url":"https://api.github.com/users/Diadlo","html_url":"https://github.com/Diadlo","followers_url":"https://api.github.com/users/Diadlo/followers","following_url":"https://api.github.com/users/Diadlo/following{/other_user}","gists_url":"https://api.github.com/users/Diadlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Diadlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diadlo/subscriptions","organizations_url":"https://api.github.com/users/Diadlo/orgs","repos_url":"https://api.github.com/users/Diadlo/repos","events_url":"https://api.github.com/users/Diadlo/events{/privacy}","received_events_url":"https://api.github.com/users/Diadlo/received_events","type":"User","site_admin":false},"repo":{"id":48807382,"name":"qTox","full_name":"Diadlo/qTox","owner":{"login":"Diadlo","id":6306608,"avatar_url":"https://avatars.githubusercontent.com/u/6306608?v=3","gravatar_id":"","url":"https://api.github.com/users/Diadlo","html_url":"https://github.com/Diadlo","followers_url":"https://api.github.com/users/Diadlo/followers","following_url":"https://api.github.com/users/Diadlo/following{/other_user}","gists_url":"https://api.github.com/users/Diadlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Diadlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diadlo/subscriptions","organizations_url":"https://api.github.com/users/Diadlo/orgs","repos_url":"https://api.github.com/users/Diadlo/repos","events_url":"https://api.github.com/users/Diadlo/events{/privacy}","received_events_url":"https://api.github.com/users/Diadlo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Diadlo/qTox","description":"Powerful Tox chat client that follows the Tox design guidelines.","fork":true,"url":"https://api.github.com/repos/Diadlo/qTox","forks_url":"https://api.github.com/repos/Diadlo/qTox/forks","keys_url":"https://api.github.com/repos/Diadlo/qTox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Diadlo/qTox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Diadlo/qTox/teams","hooks_url":"https://api.github.com/repos/Diadlo/qTox/hooks","issue_events_url":"https://api.github.com/repos/Diadlo/qTox/issues/events{/number}","events_url":"https://api.github.com/repos/Diadlo/qTox/events","assignees_url":"https://api.github.com/repos/Diadlo/qTox/assignees{/user}","branches_url":"https://api.github.com/repos/Diadlo/qTox/branches{/branch}","tags_url":"https://api.github.com/repos/Diadlo/qTox/tags","blobs_url":"https://api.github.com/repos/Diadlo/qTox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Diadlo/qTox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Diadlo/qTox/git/refs{/sha}","trees_url":"https://api.github.com/repos/Diadlo/qTox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Diadlo/qTox/statuses/{sha}","languages_url":"https://api.github.com/repos/Diadlo/qTox/languages","stargazers_url":"https://api.github.com/repos/Diadlo/qTox/stargazers","contributors_url":"https://api.github.com/repos/Diadlo/qTox/contributors","subscribers_url":"https://api.github.com/repos/Diadlo/qTox/subscribers","subscription_url":"https://api.github.com/repos/Diadlo/qTox/subscription","commits_url":"https://api.github.com/repos/Diadlo/qTox/commits{/sha}","git_commits_url":"https://api.github.com/repos/Diadlo/qTox/git/commits{/sha}","comments_url":"https://api.github.com/repos/Diadlo/qTox/comments{/number}","issue_comment_url":"https://api.github.com/repos/Diadlo/qTox/issues/comments{/number}","contents_url":"https://api.github.com/repos/Diadlo/qTox/contents/{+path}","compare_url":"https://api.github.com/repos/Diadlo/qTox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Diadlo/qTox/merges","archive_url":"https://api.github.com/repos/Diadlo/qTox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Diadlo/qTox/downloads","issues_url":"https://api.github.com/repos/Diadlo/qTox/issues{/number}","pulls_url":"https://api.github.com/repos/Diadlo/qTox/pulls{/number}","milestones_url":"https://api.github.com/repos/Diadlo/qTox/milestones{/number}","notifications_url":"https://api.github.com/repos/Diadlo/qTox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Diadlo/qTox/labels{/name}","releases_url":"https://api.github.com/repos/Diadlo/qTox/releases{/id}","deployments_url":"https://api.github.com/repos/Diadlo/qTox/deployments","created_at":"2015-12-30T15:41:12Z","updated_at":"2016-01-14T22:56:09Z","pushed_at":"2016-04-19T20:55:44Z","git_url":"git://github.com/Diadlo/qTox.git","ssh_url":"git@github.com:Diadlo/qTox.git","clone_url":"https://github.com/Diadlo/qTox.git","svn_url":"https://github.com/Diadlo/qTox","homepage":"","size":16348,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tux3:master","ref":"master","sha":"ed9ccbe4716930ff27044201480589033c5d3b6f","user":{"login":"tux3","id":5155966,"avatar_url":"https://avatars.githubusercontent.com/u/5155966?v=3","gravatar_id":"","url":"https://api.github.com/users/tux3","html_url":"https://github.com/tux3","followers_url":"https://api.github.com/users/tux3/followers","following_url":"https://api.github.com/users/tux3/following{/other_user}","gists_url":"https://api.github.com/users/tux3/gists{/gist_id}","starred_url":"https://api.github.com/users/tux3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tux3/subscriptions","organizations_url":"https://api.github.com/users/tux3/orgs","repos_url":"https://api.github.com/users/tux3/repos","events_url":"https://api.github.com/users/tux3/events{/privacy}","received_events_url":"https://api.github.com/users/tux3/received_events","type":"User","site_admin":false},"repo":{"id":21179164,"name":"qTox","full_name":"tux3/qTox","owner":{"login":"tux3","id":5155966,"avatar_url":"https://avatars.githubusercontent.com/u/5155966?v=3","gravatar_id":"","url":"https://api.github.com/users/tux3","html_url":"https://github.com/tux3","followers_url":"https://api.github.com/users/tux3/followers","following_url":"https://api.github.com/users/tux3/following{/other_user}","gists_url":"https://api.github.com/users/tux3/gists{/gist_id}","starred_url":"https://api.github.com/users/tux3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tux3/subscriptions","organizations_url":"https://api.github.com/users/tux3/orgs","repos_url":"https://api.github.com/users/tux3/repos","events_url":"https://api.github.com/users/tux3/events{/privacy}","received_events_url":"https://api.github.com/users/tux3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tux3/qTox","description":"Powerful Tox chat client that follows the Tox design guidelines.","fork":false,"url":"https://api.github.com/repos/tux3/qTox","forks_url":"https://api.github.com/repos/tux3/qTox/forks","keys_url":"https://api.github.com/repos/tux3/qTox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tux3/qTox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tux3/qTox/teams","hooks_url":"https://api.github.com/repos/tux3/qTox/hooks","issue_events_url":"https://api.github.com/repos/tux3/qTox/issues/events{/number}","events_url":"https://api.github.com/repos/tux3/qTox/events","assignees_url":"https://api.github.com/repos/tux3/qTox/assignees{/user}","branches_url":"https://api.github.com/repos/tux3/qTox/branches{/branch}","tags_url":"https://api.github.com/repos/tux3/qTox/tags","blobs_url":"https://api.github.com/repos/tux3/qTox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tux3/qTox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tux3/qTox/git/refs{/sha}","trees_url":"https://api.github.com/repos/tux3/qTox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tux3/qTox/statuses/{sha}","languages_url":"https://api.github.com/repos/tux3/qTox/languages","stargazers_url":"https://api.github.com/repos/tux3/qTox/stargazers","contributors_url":"https://api.github.com/repos/tux3/qTox/contributors","subscribers_url":"https://api.github.com/repos/tux3/qTox/subscribers","subscription_url":"https://api.github.com/repos/tux3/qTox/subscription","commits_url":"https://api.github.com/repos/tux3/qTox/commits{/sha}","git_commits_url":"https://api.github.com/repos/tux3/qTox/git/commits{/sha}","comments_url":"https://api.github.com/repos/tux3/qTox/comments{/number}","issue_comment_url":"https://api.github.com/repos/tux3/qTox/issues/comments{/number}","contents_url":"https://api.github.com/repos/tux3/qTox/contents/{+path}","compare_url":"https://api.github.com/repos/tux3/qTox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tux3/qTox/merges","archive_url":"https://api.github.com/repos/tux3/qTox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tux3/qTox/downloads","issues_url":"https://api.github.com/repos/tux3/qTox/issues{/number}","pulls_url":"https://api.github.com/repos/tux3/qTox/pulls{/number}","milestones_url":"https://api.github.com/repos/tux3/qTox/milestones{/number}","notifications_url":"https://api.github.com/repos/tux3/qTox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tux3/qTox/labels{/name}","releases_url":"https://api.github.com/repos/tux3/qTox/releases{/id}","deployments_url":"https://api.github.com/repos/tux3/qTox/deployments","created_at":"2014-06-24T20:09:04Z","updated_at":"2016-04-18T06:19:44Z","pushed_at":"2016-04-19T20:55:45Z","git_url":"git://github.com/tux3/qTox.git","ssh_url":"git@github.com:tux3/qTox.git","clone_url":"https://github.com/tux3/qTox.git","svn_url":"https://github.com/tux3/qTox","homepage":"","size":20993,"stargazers_count":903,"watchers_count":903,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":267,"mirror_url":null,"open_issues_count":487,"forks":267,"open_issues":487,"watchers":903,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tux3/qTox/pulls/3162"},"html":{"href":"https://github.com/tux3/qTox/pull/3162"},"issue":{"href":"https://api.github.com/repos/tux3/qTox/issues/3162"},"comments":{"href":"https://api.github.com/repos/tux3/qTox/issues/3162/comments"},"review_comments":{"href":"https://api.github.com/repos/tux3/qTox/pulls/3162/comments"},"review_comment":{"href":"https://api.github.com/repos/tux3/qTox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tux3/qTox/pulls/3162/commits"},"statuses":{"href":"https://api.github.com/repos/tux3/qTox/statuses/a813460a2c210485515243972665f44c9c1b91c6"}}}}