get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/112281/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 112281,
    "url": "http://patches.dpdk.org/api/patches/112281/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220602161324.1123926-5-bruce.richardson@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220602161324.1123926-5-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220602161324.1123926-5-bruce.richardson@intel.com",
    "date": "2022-06-02T16:13:24",
    "name": "[v2,4/4] app: examples: replace zero-length arrays with undimensioned ones",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e1d3315c2262d9586b1a155f6dbe5148013fff0a",
    "submitter": {
        "id": 20,
        "url": "http://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220602161324.1123926-5-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 23309,
            "url": "http://patches.dpdk.org/api/series/23309/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23309",
            "date": "2022-06-02T16:13:20",
            "name": "clean up zero-length arrays",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/23309/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/112281/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/112281/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3C2B8A0548;\n\tThu,  2 Jun 2022 18:14:07 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9A4514281A;\n\tThu,  2 Jun 2022 18:13:55 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 41F7842B70\n for <dev@dpdk.org>; Thu,  2 Jun 2022 18:13:53 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Jun 2022 09:13:52 -0700",
            "from silpixa00401385.ir.intel.com (HELO\n silpixa00401385.ger.corp.intel.com.) ([10.237.222.171])\n by orsmga007.jf.intel.com with ESMTP; 02 Jun 2022 09:13:51 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1654186433; x=1685722433;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=vWxmTozyS8qyWx/rBk1jZizBuhxiM/XVssBzuxbc1tA=;\n b=MobZxvpdZvVMiJ85OCZzWX4aWdf+Tz8pUfiVVvc7nwc3i61csMikgWO/\n NC8q9zzVrdkQOW1a0Jd/Ft3Fcth00eZmZQ94zXxA4C1ktgG7qNxTCD6JL\n har6ULawGg1PpKVo6JcScf0QMJ+csPPvLDmEjS4gJTphYfUIJIAxJeS5o\n w8meRTAQM73L3IH8W28pZHn9TMuqNbEAgFc+mBwXpB37Bi5zDztASRAtS\n 9/kd/+QKWhBMHV3reXL7cERhxXLWUlI97j53cTLNa/NqPNFH35B2T8Ixc\n ocpE26mKAV5ljhK/jf1Ad+xXhxnA5Uln3XyzpBdZrw64nDWvazqNa8l6D g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10366\"; a=\"339040530\"",
            "E=Sophos;i=\"5.91,271,1647327600\"; d=\"scan'208\";a=\"339040530\"",
            "E=Sophos;i=\"5.91,271,1647327600\"; d=\"scan'208\";a=\"577575069\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, Bruce Richardson <bruce.richardson@intel.com>,\n\t=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n Stephen Hemminger <stephen@networkplumber.org>",
        "Subject": "[PATCH v2 4/4] app: examples: replace zero-length arrays with\n undimensioned ones",
        "Date": "Thu,  2 Jun 2022 17:13:24 +0100",
        "Message-Id": "<20220602161324.1123926-5-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220602161324.1123926-1-bruce.richardson@intel.com>",
        "References": "<20220602150834.643745-1-bruce.richardson@intel.com>\n <20220602161324.1123926-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "This patch replaces instances of zero-sized arrays i.e. those at the end\nof structures with \"[0]\" with the more standard syntax of \"[]\".\nReplacement was done using coccinelle script, with some cleanup of\nwhitespace afterwards.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n app/test/test_table_tables.c   | 2 +-\n examples/ip_reassembly/main.c  | 2 +-\n examples/ptpclient/ptpclient.c | 4 ++--\n 3 files changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c\nindex 010dd5a794..26908e6112 100644\n--- a/app/test/test_table_tables.c\n+++ b/app/test/test_table_tables.c\n@@ -53,7 +53,7 @@ struct rte_bucket_4_8 {\n \tuint64_t next_valid;\n \tuint64_t key[4];\n \t/* Cache line 1 */\n-\tuint8_t data[0];\n+\tuint8_t data[];\n };\n \n #if RTE_TABLE_HASH_LRU_STRATEGY == 3\ndiff --git a/examples/ip_reassembly/main.c b/examples/ip_reassembly/main.c\nindex 6e4c11c3c7..3ebf895aa0 100644\n--- a/examples/ip_reassembly/main.c\n+++ b/examples/ip_reassembly/main.c\n@@ -126,7 +126,7 @@ struct mbuf_table {\n \tuint32_t len;\n \tuint32_t head;\n \tuint32_t tail;\n-\tstruct rte_mbuf *m_table[0];\n+\tstruct rte_mbuf *m_table[];\n };\n \n struct rx_queue {\ndiff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c\nindex de799f698b..1f1c9c9c52 100644\n--- a/examples/ptpclient/ptpclient.c\n+++ b/examples/ptpclient/ptpclient.c\n@@ -90,7 +90,7 @@ struct sync_msg {\n struct follow_up_msg {\n \tstruct ptp_header   hdr;\n \tstruct tstamp       precise_origin_tstamp;\n-\tuint8_t             suffix[0];\n+\tuint8_t             suffix[];\n } __rte_packed;\n \n struct delay_req_msg {\n@@ -102,7 +102,7 @@ struct delay_resp_msg {\n \tstruct ptp_header    hdr;\n \tstruct tstamp        rx_tstamp;\n \tstruct port_id       req_port_id;\n-\tuint8_t              suffix[0];\n+\tuint8_t              suffix[];\n } __rte_packed;\n \n struct ptp_message {\n",
    "prefixes": [
        "v2",
        "4/4"
    ]
}