get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 112271,
    "url": "http://patches.dpdk.org/api/patches/112271/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220602150834.643745-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": "<20220602150834.643745-5-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220602150834.643745-5-bruce.richardson@intel.com",
    "date": "2022-06-02T15:08:34",
    "name": "[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/20220602150834.643745-5-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 23307,
            "url": "http://patches.dpdk.org/api/series/23307/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23307",
            "date": "2022-06-02T15:08:30",
            "name": "clean up zero-length arrays",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/23307/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/112271/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/112271/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 9572DA0548;\n\tThu,  2 Jun 2022 17:09:49 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 838F740E50;\n\tThu,  2 Jun 2022 17:09:49 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id C7EE540E09\n for <dev@dpdk.org>; Thu,  2 Jun 2022 17:09:47 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Jun 2022 08:09:23 -0700",
            "from silpixa00401385.ir.intel.com (HELO\n silpixa00401385.ger.corp.intel.com.) ([10.237.222.171])\n by fmsmga005.fm.intel.com with ESMTP; 02 Jun 2022 08:08:56 -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=1654182588; x=1685718588;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=yhUqXQdJEuiFkqm2dZgLofyyAG+uIXLypkKKS27oFXY=;\n b=A8kGeLbmsvPcaReC0bLDpVp2bARNkEDmWtN22BhJReaEMunZsjXJHMAR\n +hLM+X8mHPM6IxMY8GBZuHa1PbLAeMih9iBWlCC5J7ucI213k9d5hafwj\n 46IK4xsYMQlBMb9a0y7uxSP11ZIOwknGQkAFm1cHObRvjiPZFqV8tfeo1\n USpcJntV47yN9sIG1dYQ03OHyFWrAFHkbBay7FldVwToEUIVk6Qr+qN5V\n WhkZSPZ13KN9syGi9czWzOpZhyAZClJdj9t9dI6oqqqmgXSpMPQyxMR3U\n /YLR6z1z9DuAtH8YCrCK9b0WjL8N/qOPDliPCc82fDCoMkZhcJJvi5KVB g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10365\"; a=\"301343820\"",
            "E=Sophos;i=\"5.91,271,1647327600\"; d=\"scan'208\";a=\"301343820\"",
            "E=Sophos;i=\"5.91,271,1647327600\"; d=\"scan'208\";a=\"905026034\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, stephen@networkplumber.org,\n Bruce Richardson <bruce.richardson@intel.com>",
        "Subject": "[PATCH 4/4] app: examples: replace zero-length arrays with\n undimensioned ones",
        "Date": "Thu,  2 Jun 2022 16:08:34 +0100",
        "Message-Id": "<20220602150834.643745-5-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220602150834.643745-1-bruce.richardson@intel.com>",
        "References": "<20220602150834.643745-1-bruce.richardson@intel.com>",
        "MIME-Version": "1.0",
        "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>\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": [
        "4/4"
    ]
}