)]}'
{
  "commit": "ee2e88d46f7344c904cca1ac482908f97014a1df",
  "tree": "2801f1c4b5621ed312792df1593e518577d78481",
  "parents": [
    "9e7b7b04d5444eae25a5766f730413c2882e119a"
  ],
  "author": {
    "name": "Anton Protopopov",
    "email": "a.s.protopopov@gmail.com",
    "time": "Sat Nov 14 19:29:42 2020 -0500"
  },
  "committer": {
    "name": "yonghong-song",
    "email": "ys114321@gmail.com",
    "time": "Thu Dec 10 10:13:33 2020 -0800"
  },
  "message": "libbpf-tools: syscall_helpers: fix a warning\n\nFix the following warning when building libbpf-tools:\n\n    syscall_helpers.c: In function ‘init_syscall_names’:\n    syscall_helpers.c:63:2: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]\n       63 |  fgets(buf, sizeof(buf), f);\n          |  ^~~~~~~~~~~~~~~~~~~~~~~~~~\n\nWe\u0027re not interested in the return value of the first call to fgets, because we\nwant to skip the first line and in the case of error it will be caught by the\nfollowing call to fgets. A funny note is that we can\u0027t say just \"(void) f()\" to\nsuppress the warning, so I wrote it as \"(void) !!f()\", which works.\n\nSigned-off-by: Anton Protopopov \u003ca.s.protopopov@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c72a17097ad84194ce7bce162b1eef2b50f40cfc",
      "old_mode": 33188,
      "old_path": "libbpf-tools/syscall_helpers.c",
      "new_id": "e695564e27c862b461add1ac9c3471eea4060913",
      "new_mode": 33188,
      "new_path": "libbpf-tools/syscall_helpers.c"
    }
  ]
}
