{"action":"created","comment":{"url":"https://api.github.com/repos/wotgl/OSX/pulls/comments/60023811","id":60023811,"diff_hunk":"@@ -14,38 +14,55 @@\n */\n \n #include <stdarg.h>\n-#include <stdio.h>\n+#include <cstdio>\n #include <stdlib.h>\n #include <string.h>\n #include <iostream>\n #include <thread>\n-#include \"Backup.h\"\n-#include \"Sniffer.h\"\n+#include <fstream>\n+// #include \"Backup.h\"\n+#include \"Sniffer_v2.h\"\n #include \"filetracker.hpp\"\n+#include <unistd.h>\n+#include \"launching.h\"\n+// #include <pcap.h>\n \n #define MAX_LENGTH 255\n \n // 1-st arg - interface\n int main(int argc, char **argv) {\n-    std::string snifferInterface = \"en0\";\n+    char snifferInterface[] = \"en1\";\n     if (argc > 1) {\n-        snifferInterface = argv[1];\n+        strcpy(snifferInterface, argv[1]);","path":"main.cpp","position":28,"original_position":28,"commit_id":"2678bdbcec90af866a3046876074082851d83b01","original_commit_id":"2678bdbcec90af866a3046876074082851d83b01","user":{"login":"Shmel1k","id":9203077,"avatar_url":"https://avatars.githubusercontent.com/u/9203077?v=3","gravatar_id":"","url":"https://api.github.com/users/Shmel1k","html_url":"https://github.com/Shmel1k","followers_url":"https://api.github.com/users/Shmel1k/followers","following_url":"https://api.github.com/users/Shmel1k/following{/other_user}","gists_url":"https://api.github.com/users/Shmel1k/gists{/gist_id}","starred_url":"https://api.github.com/users/Shmel1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shmel1k/subscriptions","organizations_url":"https://api.github.com/users/Shmel1k/orgs","repos_url":"https://api.github.com/users/Shmel1k/repos","events_url":"https://api.github.com/users/Shmel1k/events{/privacy}","received_events_url":"https://api.github.com/users/Shmel1k/received_events","type":"User","site_admin":false},"body":"Конечно, потому что он выпилен выше","created_at":"2016-04-18T08:46:47Z","updated_at":"2016-04-18T08:46:47Z","html_url":"https://github.com/wotgl/OSX/pull/13#discussion_r60023811","pull_request_url":"https://api.github.com/repos/wotgl/OSX/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/wotgl/OSX/pulls/comments/60023811"},"html":{"href":"https://github.com/wotgl/OSX/pull/13#discussion_r60023811"},"pull_request":{"href":"https://api.github.com/repos/wotgl/OSX/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/wotgl/OSX/pulls/13","id":66814356,"html_url":"https://github.com/wotgl/OSX/pull/13","diff_url":"https://github.com/wotgl/OSX/pull/13.diff","patch_url":"https://github.com/wotgl/OSX/pull/13.patch","issue_url":"https://api.github.com/repos/wotgl/OSX/issues/13","number":13,"state":"open","locked":false,"title":"Task-1-4","user":{"login":"pavelrpaul","id":10065754,"avatar_url":"https://avatars.githubusercontent.com/u/10065754?v=3","gravatar_id":"","url":"https://api.github.com/users/pavelrpaul","html_url":"https://github.com/pavelrpaul","followers_url":"https://api.github.com/users/pavelrpaul/followers","following_url":"https://api.github.com/users/pavelrpaul/following{/other_user}","gists_url":"https://api.github.com/users/pavelrpaul/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelrpaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelrpaul/subscriptions","organizations_url":"https://api.github.com/users/pavelrpaul/orgs","repos_url":"https://api.github.com/users/pavelrpaul/repos","events_url":"https://api.github.com/users/pavelrpaul/events{/privacy}","received_events_url":"https://api.github.com/users/pavelrpaul/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-18T08:20:28Z","updated_at":"2016-04-18T08:46:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7e0c67bc821d0309296200cabe28278a3a23c46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wotgl/OSX/pulls/13/commits","review_comments_url":"https://api.github.com/repos/wotgl/OSX/pulls/13/comments","review_comment_url":"https://api.github.com/repos/wotgl/OSX/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wotgl/OSX/issues/13/comments","statuses_url":"https://api.github.com/repos/wotgl/OSX/statuses/2678bdbcec90af866a3046876074082851d83b01","head":{"label":"wotgl:task-1-4","ref":"task-1-4","sha":"2678bdbcec90af866a3046876074082851d83b01","user":{"login":"wotgl","id":7968712,"avatar_url":"https://avatars.githubusercontent.com/u/7968712?v=3","gravatar_id":"","url":"https://api.github.com/users/wotgl","html_url":"https://github.com/wotgl","followers_url":"https://api.github.com/users/wotgl/followers","following_url":"https://api.github.com/users/wotgl/following{/other_user}","gists_url":"https://api.github.com/users/wotgl/gists{/gist_id}","starred_url":"https://api.github.com/users/wotgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wotgl/subscriptions","organizations_url":"https://api.github.com/users/wotgl/orgs","repos_url":"https://api.github.com/users/wotgl/repos","events_url":"https://api.github.com/users/wotgl/events{/privacy}","received_events_url":"https://api.github.com/users/wotgl/received_events","type":"User","site_admin":false},"repo":{"id":53199626,"name":"OSX","full_name":"wotgl/OSX","owner":{"login":"wotgl","id":7968712,"avatar_url":"https://avatars.githubusercontent.com/u/7968712?v=3","gravatar_id":"","url":"https://api.github.com/users/wotgl","html_url":"https://github.com/wotgl","followers_url":"https://api.github.com/users/wotgl/followers","following_url":"https://api.github.com/users/wotgl/following{/other_user}","gists_url":"https://api.github.com/users/wotgl/gists{/gist_id}","starred_url":"https://api.github.com/users/wotgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wotgl/subscriptions","organizations_url":"https://api.github.com/users/wotgl/orgs","repos_url":"https://api.github.com/users/wotgl/repos","events_url":"https://api.github.com/users/wotgl/events{/privacy}","received_events_url":"https://api.github.com/users/wotgl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wotgl/OSX","description":"blah-blah-blah","fork":false,"url":"https://api.github.com/repos/wotgl/OSX","forks_url":"https://api.github.com/repos/wotgl/OSX/forks","keys_url":"https://api.github.com/repos/wotgl/OSX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wotgl/OSX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wotgl/OSX/teams","hooks_url":"https://api.github.com/repos/wotgl/OSX/hooks","issue_events_url":"https://api.github.com/repos/wotgl/OSX/issues/events{/number}","events_url":"https://api.github.com/repos/wotgl/OSX/events","assignees_url":"https://api.github.com/repos/wotgl/OSX/assignees{/user}","branches_url":"https://api.github.com/repos/wotgl/OSX/branches{/branch}","tags_url":"https://api.github.com/repos/wotgl/OSX/tags","blobs_url":"https://api.github.com/repos/wotgl/OSX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wotgl/OSX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wotgl/OSX/git/refs{/sha}","trees_url":"https://api.github.com/repos/wotgl/OSX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wotgl/OSX/statuses/{sha}","languages_url":"https://api.github.com/repos/wotgl/OSX/languages","stargazers_url":"https://api.github.com/repos/wotgl/OSX/stargazers","contributors_url":"https://api.github.com/repos/wotgl/OSX/contributors","subscribers_url":"https://api.github.com/repos/wotgl/OSX/subscribers","subscription_url":"https://api.github.com/repos/wotgl/OSX/subscription","commits_url":"https://api.github.com/repos/wotgl/OSX/commits{/sha}","git_commits_url":"https://api.github.com/repos/wotgl/OSX/git/commits{/sha}","comments_url":"https://api.github.com/repos/wotgl/OSX/comments{/number}","issue_comment_url":"https://api.github.com/repos/wotgl/OSX/issues/comments{/number}","contents_url":"https://api.github.com/repos/wotgl/OSX/contents/{+path}","compare_url":"https://api.github.com/repos/wotgl/OSX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wotgl/OSX/merges","archive_url":"https://api.github.com/repos/wotgl/OSX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wotgl/OSX/downloads","issues_url":"https://api.github.com/repos/wotgl/OSX/issues{/number}","pulls_url":"https://api.github.com/repos/wotgl/OSX/pulls{/number}","milestones_url":"https://api.github.com/repos/wotgl/OSX/milestones{/number}","notifications_url":"https://api.github.com/repos/wotgl/OSX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wotgl/OSX/labels{/name}","releases_url":"https://api.github.com/repos/wotgl/OSX/releases{/id}","deployments_url":"https://api.github.com/repos/wotgl/OSX/deployments","created_at":"2016-03-05T12:09:02Z","updated_at":"2016-03-28T18:07:50Z","pushed_at":"2016-04-18T08:20:28Z","git_url":"git://github.com/wotgl/OSX.git","ssh_url":"git@github.com:wotgl/OSX.git","clone_url":"https://github.com/wotgl/OSX.git","svn_url":"https://github.com/wotgl/OSX","homepage":null,"size":3731,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"wotgl:master","ref":"master","sha":"f1c7757ec875c7df5d67da61b09db53e196e072a","user":{"login":"wotgl","id":7968712,"avatar_url":"https://avatars.githubusercontent.com/u/7968712?v=3","gravatar_id":"","url":"https://api.github.com/users/wotgl","html_url":"https://github.com/wotgl","followers_url":"https://api.github.com/users/wotgl/followers","following_url":"https://api.github.com/users/wotgl/following{/other_user}","gists_url":"https://api.github.com/users/wotgl/gists{/gist_id}","starred_url":"https://api.github.com/users/wotgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wotgl/subscriptions","organizations_url":"https://api.github.com/users/wotgl/orgs","repos_url":"https://api.github.com/users/wotgl/repos","events_url":"https://api.github.com/users/wotgl/events{/privacy}","received_events_url":"https://api.github.com/users/wotgl/received_events","type":"User","site_admin":false},"repo":{"id":53199626,"name":"OSX","full_name":"wotgl/OSX","owner":{"login":"wotgl","id":7968712,"avatar_url":"https://avatars.githubusercontent.com/u/7968712?v=3","gravatar_id":"","url":"https://api.github.com/users/wotgl","html_url":"https://github.com/wotgl","followers_url":"https://api.github.com/users/wotgl/followers","following_url":"https://api.github.com/users/wotgl/following{/other_user}","gists_url":"https://api.github.com/users/wotgl/gists{/gist_id}","starred_url":"https://api.github.com/users/wotgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wotgl/subscriptions","organizations_url":"https://api.github.com/users/wotgl/orgs","repos_url":"https://api.github.com/users/wotgl/repos","events_url":"https://api.github.com/users/wotgl/events{/privacy}","received_events_url":"https://api.github.com/users/wotgl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wotgl/OSX","description":"blah-blah-blah","fork":false,"url":"https://api.github.com/repos/wotgl/OSX","forks_url":"https://api.github.com/repos/wotgl/OSX/forks","keys_url":"https://api.github.com/repos/wotgl/OSX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wotgl/OSX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wotgl/OSX/teams","hooks_url":"https://api.github.com/repos/wotgl/OSX/hooks","issue_events_url":"https://api.github.com/repos/wotgl/OSX/issues/events{/number}","events_url":"https://api.github.com/repos/wotgl/OSX/events","assignees_url":"https://api.github.com/repos/wotgl/OSX/assignees{/user}","branches_url":"https://api.github.com/repos/wotgl/OSX/branches{/branch}","tags_url":"https://api.github.com/repos/wotgl/OSX/tags","blobs_url":"https://api.github.com/repos/wotgl/OSX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wotgl/OSX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wotgl/OSX/git/refs{/sha}","trees_url":"https://api.github.com/repos/wotgl/OSX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wotgl/OSX/statuses/{sha}","languages_url":"https://api.github.com/repos/wotgl/OSX/languages","stargazers_url":"https://api.github.com/repos/wotgl/OSX/stargazers","contributors_url":"https://api.github.com/repos/wotgl/OSX/contributors","subscribers_url":"https://api.github.com/repos/wotgl/OSX/subscribers","subscription_url":"https://api.github.com/repos/wotgl/OSX/subscription","commits_url":"https://api.github.com/repos/wotgl/OSX/commits{/sha}","git_commits_url":"https://api.github.com/repos/wotgl/OSX/git/commits{/sha}","comments_url":"https://api.github.com/repos/wotgl/OSX/comments{/number}","issue_comment_url":"https://api.github.com/repos/wotgl/OSX/issues/comments{/number}","contents_url":"https://api.github.com/repos/wotgl/OSX/contents/{+path}","compare_url":"https://api.github.com/repos/wotgl/OSX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wotgl/OSX/merges","archive_url":"https://api.github.com/repos/wotgl/OSX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wotgl/OSX/downloads","issues_url":"https://api.github.com/repos/wotgl/OSX/issues{/number}","pulls_url":"https://api.github.com/repos/wotgl/OSX/pulls{/number}","milestones_url":"https://api.github.com/repos/wotgl/OSX/milestones{/number}","notifications_url":"https://api.github.com/repos/wotgl/OSX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wotgl/OSX/labels{/name}","releases_url":"https://api.github.com/repos/wotgl/OSX/releases{/id}","deployments_url":"https://api.github.com/repos/wotgl/OSX/deployments","created_at":"2016-03-05T12:09:02Z","updated_at":"2016-03-28T18:07:50Z","pushed_at":"2016-04-18T08:20:28Z","git_url":"git://github.com/wotgl/OSX.git","ssh_url":"git@github.com:wotgl/OSX.git","clone_url":"https://github.com/wotgl/OSX.git","svn_url":"https://github.com/wotgl/OSX","homepage":null,"size":3731,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wotgl/OSX/pulls/13"},"html":{"href":"https://github.com/wotgl/OSX/pull/13"},"issue":{"href":"https://api.github.com/repos/wotgl/OSX/issues/13"},"comments":{"href":"https://api.github.com/repos/wotgl/OSX/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/wotgl/OSX/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/wotgl/OSX/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wotgl/OSX/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/wotgl/OSX/statuses/2678bdbcec90af866a3046876074082851d83b01"}}}}