{"action":"opened","number":2791,"pull_request":{"url":"https://api.github.com/repos/systemd/systemd/pulls/2791","id":61600456,"html_url":"https://github.com/systemd/systemd/pull/2791","diff_url":"https://github.com/systemd/systemd/pull/2791.diff","patch_url":"https://github.com/systemd/systemd/pull/2791.patch","issue_url":"https://api.github.com/repos/systemd/systemd/issues/2791","number":2791,"state":"open","locked":false,"title":"Introduce CLEAR_FLAG() macro and some tree-wide cleanups","user":{"login":"0xAX","id":2699235,"avatar_url":"https://avatars.githubusercontent.com/u/2699235?v=3","gravatar_id":"","url":"https://api.github.com/users/0xAX","html_url":"https://github.com/0xAX","followers_url":"https://api.github.com/users/0xAX/followers","following_url":"https://api.github.com/users/0xAX/following{/other_user}","gists_url":"https://api.github.com/users/0xAX/gists{/gist_id}","starred_url":"https://api.github.com/users/0xAX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xAX/subscriptions","organizations_url":"https://api.github.com/users/0xAX/orgs","repos_url":"https://api.github.com/users/0xAX/repos","events_url":"https://api.github.com/users/0xAX/events{/privacy}","received_events_url":"https://api.github.com/users/0xAX/received_events","type":"User","site_admin":false},"body":"The basic/macro.h already provides `SET_FLAG()` macro which is used,\r\nin some subsystems. This patch provides similar macro, but with\r\ninverse logic. \r\n\r\nAdditionally this patch set contains small tree-wide cleanups which changes `if` clauses with `SET_FLAG()` and `CLEAR_FLAG()` macros.\r\n","created_at":"2016-03-03T18:07:51Z","updated_at":"2016-03-03T18:07:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/systemd/systemd/pulls/2791/commits","review_comments_url":"https://api.github.com/repos/systemd/systemd/pulls/2791/comments","review_comment_url":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/2791/comments","statuses_url":"https://api.github.com/repos/systemd/systemd/statuses/ae67aa80c2a8e052129ab0bc80a0050b266c8449","head":{"label":"0xAX:clear-flag-macro","ref":"clear-flag-macro","sha":"ae67aa80c2a8e052129ab0bc80a0050b266c8449","user":{"login":"0xAX","id":2699235,"avatar_url":"https://avatars.githubusercontent.com/u/2699235?v=3","gravatar_id":"","url":"https://api.github.com/users/0xAX","html_url":"https://github.com/0xAX","followers_url":"https://api.github.com/users/0xAX/followers","following_url":"https://api.github.com/users/0xAX/following{/other_user}","gists_url":"https://api.github.com/users/0xAX/gists{/gist_id}","starred_url":"https://api.github.com/users/0xAX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xAX/subscriptions","organizations_url":"https://api.github.com/users/0xAX/orgs","repos_url":"https://api.github.com/users/0xAX/repos","events_url":"https://api.github.com/users/0xAX/events{/privacy}","received_events_url":"https://api.github.com/users/0xAX/received_events","type":"User","site_admin":false},"repo":{"id":44437067,"name":"systemd","full_name":"0xAX/systemd","owner":{"login":"0xAX","id":2699235,"avatar_url":"https://avatars.githubusercontent.com/u/2699235?v=3","gravatar_id":"","url":"https://api.github.com/users/0xAX","html_url":"https://github.com/0xAX","followers_url":"https://api.github.com/users/0xAX/followers","following_url":"https://api.github.com/users/0xAX/following{/other_user}","gists_url":"https://api.github.com/users/0xAX/gists{/gist_id}","starred_url":"https://api.github.com/users/0xAX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xAX/subscriptions","organizations_url":"https://api.github.com/users/0xAX/orgs","repos_url":"https://api.github.com/users/0xAX/repos","events_url":"https://api.github.com/users/0xAX/events{/privacy}","received_events_url":"https://api.github.com/users/0xAX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/0xAX/systemd","description":"systemd upstream","fork":true,"url":"https://api.github.com/repos/0xAX/systemd","forks_url":"https://api.github.com/repos/0xAX/systemd/forks","keys_url":"https://api.github.com/repos/0xAX/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0xAX/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0xAX/systemd/teams","hooks_url":"https://api.github.com/repos/0xAX/systemd/hooks","issue_events_url":"https://api.github.com/repos/0xAX/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/0xAX/systemd/events","assignees_url":"https://api.github.com/repos/0xAX/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/0xAX/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/0xAX/systemd/tags","blobs_url":"https://api.github.com/repos/0xAX/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0xAX/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0xAX/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/0xAX/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0xAX/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/0xAX/systemd/languages","stargazers_url":"https://api.github.com/repos/0xAX/systemd/stargazers","contributors_url":"https://api.github.com/repos/0xAX/systemd/contributors","subscribers_url":"https://api.github.com/repos/0xAX/systemd/subscribers","subscription_url":"https://api.github.com/repos/0xAX/systemd/subscription","commits_url":"https://api.github.com/repos/0xAX/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/0xAX/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/0xAX/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/0xAX/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/0xAX/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/0xAX/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0xAX/systemd/merges","archive_url":"https://api.github.com/repos/0xAX/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0xAX/systemd/downloads","issues_url":"https://api.github.com/repos/0xAX/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/0xAX/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/0xAX/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/0xAX/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0xAX/systemd/labels{/name}","releases_url":"https://api.github.com/repos/0xAX/systemd/releases{/id}","deployments_url":"https://api.github.com/repos/0xAX/systemd/deployments","created_at":"2015-10-17T12:56:32Z","updated_at":"2016-02-13T19:02:42Z","pushed_at":"2016-03-03T17:56:43Z","git_url":"git://github.com/0xAX/systemd.git","ssh_url":"git@github.com:0xAX/systemd.git","clone_url":"https://github.com/0xAX/systemd.git","svn_url":"https://github.com/0xAX/systemd","homepage":"http://www.freedesktop.org/wiki/Software/systemd/","size":54189,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"base":{"label":"systemd:master","ref":"master","sha":"9f0cd100d0dbc7c9b55e99bacb4034402a60b389","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-03-03T15:23:03Z","pushed_at":"2016-03-03T17:32:13Z","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":68424,"stargazers_count":924,"watchers_count":924,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":358,"mirror_url":null,"open_issues_count":332,"forks":358,"open_issues":332,"watchers":924,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/systemd/systemd/pulls/2791"},"html":{"href":"https://github.com/systemd/systemd/pull/2791"},"issue":{"href":"https://api.github.com/repos/systemd/systemd/issues/2791"},"comments":{"href":"https://api.github.com/repos/systemd/systemd/issues/2791/comments"},"review_comments":{"href":"https://api.github.com/repos/systemd/systemd/pulls/2791/comments"},"review_comment":{"href":"https://api.github.com/repos/systemd/systemd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/systemd/systemd/pulls/2791/commits"},"statuses":{"href":"https://api.github.com/repos/systemd/systemd/statuses/ae67aa80c2a8e052129ab0bc80a0050b266c8449"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":17,"deletions":52,"changed_files":9}}