)]}'
{
  "commit": "2288a3cff38586332189b01e76609ad24e607076",
  "tree": "f2190abed08cb7b876ed341a7e3148a55685844e",
  "parents": [
    "515167694e98177be242a1fdfdc1984bef455b2f"
  ],
  "author": {
    "name": "Li Zhijian",
    "email": "lizhijian@fujitsu.com",
    "time": "Tue Nov 12 17:05:19 2024 +0800"
  },
  "committer": {
    "name": "Nicolas Morey",
    "email": "nmorey@suse.com",
    "time": "Mon Nov 09 17:41:26 2026 +0100"
  },
  "message": "libibnetdisc: Correct argument order in calloc call to fix warning\n\n[ Upstream commit 191a5fe45842d868f48640df63c9745dc2b2ff0d ]\n\nThis commit fixes a compiler warning related to the use of calloc.\n```\nlibibnetdisc/ibnetdisc_cache.c:560:36: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]\n  560 |                       calloc(sizeof(*node-\u003eports), node-\u003enumports + 1))) {\n      |                                    ^\nlibibnetdisc/ibnetdisc_cache.c:560:36: note: earlier argument should specify number of elements, later size of each element\n```\n\nThe warning was due to transposed arguments in the calloc call, where the\nnumber of elements and the size of each element were specified in the wrong\norder.\n\nThe correct order for calloc\u0027s arguments is:\nvoid *calloc(size_t nmemb, size_t size)\n\nSigned-off-by: Li Zhijian \u003clizhijian@fujitsu.com\u003e\nSigned-off-by: Nicolas Morey \u003cnmorey@suse.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8802ab47248f007fbe0c6ac0c3d2f65498f31e42",
      "old_mode": 33188,
      "old_path": "libibnetdisc/ibnetdisc_cache.c",
      "new_id": "1001d47f64f4cdb15780c39ce640f510985b450a",
      "new_mode": 33188,
      "new_path": "libibnetdisc/ibnetdisc_cache.c"
    }
  ]
}
