)]}'
{
  "commit": "257a7375582e4c3b32687c72d0f52279d28b2d85",
  "tree": "be0ea143ef397130589e1ce17ccf2044e9c6d0a3",
  "parents": [
    "8a6b0cd7642f6a69700ef5c082b750140d61b7f4"
  ],
  "author": {
    "name": "David Gibson",
    "email": "david@gibson.dropbear.id.au",
    "time": "Mon Aug 01 16:49:59 2011 +1000"
  },
  "committer": {
    "name": "Anthony Liguori",
    "email": "aliguori@us.ibm.com",
    "time": "Fri Aug 05 10:57:34 2011 -0500"
  },
  "message": "Check fread() results to avoid gcc 4.6 warnings\n\nWhen compiling with gcc 4.6, some code in fw_cfg.c complains that fop_ret\nis assigned but not used (which is true).  However, it looks like the\nmeaningless assignments to fop_ret were done to suppress other gcc warnings\ndue to the fact that fread() is labelled as warn_unused_result in glibc.\n\nThis patch avoids both errors, by actually checking the fread() result code\nand dropping out with an error message if it fails.\n\nReviewed-by: Stefan Hajnoczi \u003cstefanha@linux.vnet.ibm.com\u003e\nTested-by: Stefan Berger \u003cstefanb@linux.vnet.ibm.com\u003e\nSigned-off-by: David Gibson \u003cdavid@gibson.dropbear.id.au\u003e\nSigned-off-by: Anthony Liguori \u003caliguori@us.ibm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a29db9055d4b2eb22071a0cd9e79ed36c8f5ffa6",
      "old_mode": 33188,
      "old_path": "hw/fw_cfg.c",
      "new_id": "e4847b7f93732f2108871372c3b1dda149735524",
      "new_mode": 33188,
      "new_path": "hw/fw_cfg.c"
    }
  ]
}
