{"action":"closed","number":4363,"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/4363","id":89090198,"html_url":"https://github.com/systemd/systemd/pull/4363","diff_url":"https://github.com/systemd/systemd/pull/4363.diff","patch_url":"https://github.com/systemd/systemd/pull/4363.patch","issue_url":"https://api.github.com/repos/systemd/systemd/issues/4363","number":4363,"state":"closed","locked":false,"title":"basic,coredump: use for loop instead of while","user":{"login":"stefan-it","id":20651387,"avatar_url":"https://avatars.githubusercontent.com/u/20651387?v=3","gravatar_id":"","url":"https://api.github.com/users/stefan-it","html_url":"https://github.com/stefan-it","followers_url":"https://api.github.com/users/stefan-it/followers","following_url":"https://api.github.com/users/stefan-it/following{/other_user}","gists_url":"https://api.github.com/users/stefan-it/gists{/gist_id}","starred_url":"https://api.github.com/users/stefan-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefan-it/subscriptions","organizations_url":"https://api.github.com/users/stefan-it/orgs","repos_url":"https://api.github.com/users/stefan-it/repos","events_url":"https://api.github.com/users/stefan-it/events{/privacy}","received_events_url":"https://api.github.com/users/stefan-it/received_events","type":"User","site_admin":false},"body":"This PR replaces `while()` loops and uses `for (;;)` instead, as described in `CODING_STYLE`.\r\n\r\nAll occurences were found by `coccinelle` running the `while-true.cocci` script.","created_at":"2016-10-12T20:43:29Z","updated_at":"2016-10-13T13:56:23Z","closed_at":"2016-10-13T13:56:23Z","merged_at":"2016-10-13T13:56:23Z","merge_commit_sha":"d02b5af3f38d998d57cac3c4cc429b072a37e9cd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/systemd/systemd/pulls/4363/commits","review_comments_url":"https://api.github.com/repos/systemd/systemd/pulls/4363/comments","review_comment_url":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/4363/comments","statuses_url":"https://api.github.com/repos/systemd/systemd/statuses/aa7530d6817b0712c0795bbcdeffd4001ec19467","head":{"label":"stefan-it:replace-while-loops","ref":"replace-while-loops","sha":"aa7530d6817b0712c0795bbcdeffd4001ec19467","user":{"login":"stefan-it","id":20651387,"avatar_url":"https://avatars.githubusercontent.com/u/20651387?v=3","gravatar_id":"","url":"https://api.github.com/users/stefan-it","html_url":"https://github.com/stefan-it","followers_url":"https://api.github.com/users/stefan-it/followers","following_url":"https://api.github.com/users/stefan-it/following{/other_user}","gists_url":"https://api.github.com/users/stefan-it/gists{/gist_id}","starred_url":"https://api.github.com/users/stefan-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefan-it/subscriptions","organizations_url":"https://api.github.com/users/stefan-it/orgs","repos_url":"https://api.github.com/users/stefan-it/repos","events_url":"https://api.github.com/users/stefan-it/events{/privacy}","received_events_url":"https://api.github.com/users/stefan-it/received_events","type":"User","site_admin":false},"repo":{"id":68758718,"name":"systemd","full_name":"stefan-it/systemd","owner":{"login":"stefan-it","id":20651387,"avatar_url":"https://avatars.githubusercontent.com/u/20651387?v=3","gravatar_id":"","url":"https://api.github.com/users/stefan-it","html_url":"https://github.com/stefan-it","followers_url":"https://api.github.com/users/stefan-it/followers","following_url":"https://api.github.com/users/stefan-it/following{/other_user}","gists_url":"https://api.github.com/users/stefan-it/gists{/gist_id}","starred_url":"https://api.github.com/users/stefan-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefan-it/subscriptions","organizations_url":"https://api.github.com/users/stefan-it/orgs","repos_url":"https://api.github.com/users/stefan-it/repos","events_url":"https://api.github.com/users/stefan-it/events{/privacy}","received_events_url":"https://api.github.com/users/stefan-it/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stefan-it/systemd","description":"systemd upstream","fork":true,"url":"https://api.github.com/repos/stefan-it/systemd","forks_url":"https://api.github.com/repos/stefan-it/systemd/forks","keys_url":"https://api.github.com/repos/stefan-it/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stefan-it/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stefan-it/systemd/teams","hooks_url":"https://api.github.com/repos/stefan-it/systemd/hooks","issue_events_url":"https://api.github.com/repos/stefan-it/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/stefan-it/systemd/events","assignees_url":"https://api.github.com/repos/stefan-it/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/stefan-it/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/stefan-it/systemd/tags","blobs_url":"https://api.github.com/repos/stefan-it/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stefan-it/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stefan-it/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/stefan-it/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stefan-it/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/stefan-it/systemd/languages","stargazers_url":"https://api.github.com/repos/stefan-it/systemd/stargazers","contributors_url":"https://api.github.com/repos/stefan-it/systemd/contributors","subscribers_url":"https://api.github.com/repos/stefan-it/systemd/subscribers","subscription_url":"https://api.github.com/repos/stefan-it/systemd/subscription","commits_url":"https://api.github.com/repos/stefan-it/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/stefan-it/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/stefan-it/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/stefan-it/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/stefan-it/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/stefan-it/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stefan-it/systemd/merges","archive_url":"https://api.github.com/repos/stefan-it/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stefan-it/systemd/downloads","issues_url":"https://api.github.com/repos/stefan-it/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/stefan-it/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/stefan-it/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/stefan-it/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stefan-it/systemd/labels{/name}","releases_url":"https://api.github.com/repos/stefan-it/systemd/releases{/id}","deployments_url":"https://api.github.com/repos/stefan-it/systemd/deployments","created_at":"2016-09-20T22:33:17Z","updated_at":"2016-09-20T22:33:25Z","pushed_at":"2016-10-12T20:39:23Z","git_url":"git://github.com/stefan-it/systemd.git","ssh_url":"git@github.com:stefan-it/systemd.git","clone_url":"https://github.com/stefan-it/systemd.git","svn_url":"https://github.com/stefan-it/systemd","homepage":"http://www.freedesktop.org/wiki/Software/systemd/","size":60929,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"systemd:master","ref":"master","sha":"6612379adf2eceb7275cec26b5441328f56407c5","user":{"login":"systemd","id":1918868,"avatar_url":"https://avatars.githubusercontent.com/u/1918868?v=3","gravatar_id":"","url":"https://api.github.com/users/systemd","html_url":"https://github.com/systemd","followers_url":"https://api.github.com/users/systemd/followers","following_url":"https://api.github.com/users/systemd/following{/other_user}","gists_url":"https://api.github.com/users/systemd/gists{/gist_id}","starred_url":"https://api.github.com/users/systemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemd/subscriptions","organizations_url":"https://api.github.com/users/systemd/orgs","repos_url":"https://api.github.com/users/systemd/repos","events_url":"https://api.github.com/users/systemd/events{/privacy}","received_events_url":"https://api.github.com/users/systemd/received_events","type":"Organization","site_admin":false},"repo":{"id":32873313,"name":"systemd","full_name":"systemd/systemd","owner":{"login":"systemd","id":1918868,"avatar_url":"https://avatars.githubusercontent.com/u/1918868?v=3","gravatar_id":"","url":"https://api.github.com/users/systemd","html_url":"https://github.com/systemd","followers_url":"https://api.github.com/users/systemd/followers","following_url":"https://api.github.com/users/systemd/following{/other_user}","gists_url":"https://api.github.com/users/systemd/gists{/gist_id}","starred_url":"https://api.github.com/users/systemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/systemd/subscriptions","organizations_url":"https://api.github.com/users/systemd/orgs","repos_url":"https://api.github.com/users/systemd/repos","events_url":"https://api.github.com/users/systemd/events{/privacy}","received_events_url":"https://api.github.com/users/systemd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/systemd/systemd","description":"systemd upstream","fork":false,"url":"https://api.github.com/repos/systemd/systemd","forks_url":"https://api.github.com/repos/systemd/systemd/forks","keys_url":"https://api.github.com/repos/systemd/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/systemd/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/systemd/systemd/teams","hooks_url":"https://api.github.com/repos/systemd/systemd/hooks","issue_events_url":"https://api.github.com/repos/systemd/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/systemd/systemd/events","assignees_url":"https://api.github.com/repos/systemd/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/systemd/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/systemd/systemd/tags","blobs_url":"https://api.github.com/repos/systemd/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/systemd/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/systemd/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/systemd/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/systemd/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/systemd/systemd/languages","stargazers_url":"https://api.github.com/repos/systemd/systemd/stargazers","contributors_url":"https://api.github.com/repos/systemd/systemd/contributors","subscribers_url":"https://api.github.com/repos/systemd/systemd/subscribers","subscription_url":"https://api.github.com/repos/systemd/systemd/subscription","commits_url":"https://api.github.com/repos/systemd/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/systemd/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/systemd/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/systemd/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/systemd/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/systemd/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/systemd/systemd/merges","archive_url":"https://api.github.com/repos/systemd/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/systemd/systemd/downloads","issues_url":"https://api.github.com/repos/systemd/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/systemd/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/systemd/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/systemd/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/systemd/systemd/labels{/name}","releases_url":"https://api.github.com/repos/systemd/systemd/releases{/id}","deployments_url":"https://api.github.com/repos/systemd/systemd/deployments","created_at":"2015-03-25T15:27:27Z","updated_at":"2016-10-13T03:15:55Z","pushed_at":"2016-10-13T13:56:23Z","git_url":"git://github.com/systemd/systemd.git","ssh_url":"git@github.com:systemd/systemd.git","clone_url":"https://github.com/systemd/systemd.git","svn_url":"https://github.com/systemd/systemd","homepage":"http://www.freedesktop.org/wiki/Software/systemd/","size":75712,"stargazers_count":1413,"watchers_count":1413,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":594,"mirror_url":null,"open_issues_count":456,"forks":594,"open_issues":456,"watchers":1413,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/systemd/systemd/pulls/4363"},"html":{"href":"https://github.com/systemd/systemd/pull/4363"},"issue":{"href":"https://api.github.com/repos/systemd/systemd/issues/4363"},"comments":{"href":"https://api.github.com/repos/systemd/systemd/issues/4363/comments"},"review_comments":{"href":"https://api.github.com/repos/systemd/systemd/pulls/4363/comments"},"review_comment":{"href":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systemd/systemd/pulls/4363/commits"},"statuses":{"href":"https://api.github.com/repos/systemd/systemd/statuses/aa7530d6817b0712c0795bbcdeffd4001ec19467"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"zonque","id":106304,"avatar_url":"https://avatars.githubusercontent.com/u/106304?v=3","gravatar_id":"","url":"https://api.github.com/users/zonque","html_url":"https://github.com/zonque","followers_url":"https://api.github.com/users/zonque/followers","following_url":"https://api.github.com/users/zonque/following{/other_user}","gists_url":"https://api.github.com/users/zonque/gists{/gist_id}","starred_url":"https://api.github.com/users/zonque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonque/subscriptions","organizations_url":"https://api.github.com/users/zonque/orgs","repos_url":"https://api.github.com/users/zonque/repos","events_url":"https://api.github.com/users/zonque/events{/privacy}","received_events_url":"https://api.github.com/users/zonque/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":2,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"zonque"}}