)]}'
{
  "commit": "afcd360005dcbd3d9e6ed2d6e0255a7ad9efd3a7",
  "tree": "b2c941f8dd1cf2cd4c12b57f33e49341b8c8ebf6",
  "parents": [
    "65b786f77d78df53c41c064ae958dffad1bbe222"
  ],
  "author": {
    "name": "Tormod Volden",
    "email": "debian.tormod@gmail.com",
    "time": "Sat Jan 22 14:39:45 2022 +0100"
  },
  "committer": {
    "name": "Tormod Volden",
    "email": "debian.tormod@gmail.com",
    "time": "Sat Jan 22 14:47:17 2022 +0100"
  },
  "message": "examples: Do not assume positive errno macros\n\nSome functions were returning e.g. -ENOMEM and the caller would check\nfor negative return values. However, on Haiku, contrary to modern\nstandards, these macros are negative, so this logic would fail. In any\ncase, change the function to return -1 instead. For good measure also\nset errno to the appropriate value, although it is not used in the\ncurrent code.\n\nThis was discovered on Haiku builds because the value for ENOMEM is\nINT_MIN which cannot be negated without overflow.\n\nSigned-off-by: Tormod Volden \u003cdebian.tormod@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a3a76dfdb9de884e466b667bb3630cd7cc86e3f1",
      "old_mode": 33188,
      "old_path": "examples/dpfp.c",
      "new_id": "682865053d0b2ca43380edd5a374e4387656951f",
      "new_mode": 33188,
      "new_path": "examples/dpfp.c"
    },
    {
      "type": "modify",
      "old_id": "ec60b0e2330f1eeb7bc686bfe61564ec7ca9bdd3",
      "old_mode": 33188,
      "old_path": "examples/ezusb.c",
      "new_id": "4bed12a4ce32de83b227a4471f599dad4388adb3",
      "new_mode": 33188,
      "new_path": "examples/ezusb.c"
    },
    {
      "type": "modify",
      "old_id": "33e891358b5a9e4597e90220d774e7a6bca24d51",
      "old_mode": 33188,
      "old_path": "examples/sam3u_benchmark.c",
      "new_id": "89797754f3ad72ec223c18f0958aaf26e8d415f5",
      "new_mode": 33188,
      "new_path": "examples/sam3u_benchmark.c"
    },
    {
      "type": "modify",
      "old_id": "1261c1be9f5e68dcea02a187649f924e1c39a483",
      "old_mode": 33188,
      "old_path": "libusb/version_nano.h",
      "new_id": "ae20d7d7a5d49df25b8d998fce08866891c9bdaa",
      "new_mode": 33188,
      "new_path": "libusb/version_nano.h"
    }
  ]
}
