diff for duplicates of <49DCB43A.8080901@fastmail.fm> diff --git a/a/1.txt b/N1/1.txt index 1eb6ad8..8575d52 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -18,14 +18,14 @@ walter harms wrote: >>> z = 1 << j; /* table entries for j-bit table */ >>> >>> /* allocate and link in new table */ ->>> - if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) = ->>> + if ((q = malloc((z + 1)*sizeof(struct huft))) = +>>> - if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) == +>>> + if ((q = malloc((z + 1)*sizeof(struct huft))) == >>> (struct huft *)NULL) >>> > and move the q= from the if. less than half the size. > > q = malloc( (z + 1)*sizeof(*q) ): -> if ( q = NULL ) +> if ( q == NULL ) > I was avoiding that sort of thing as this patch series is large enough as it is. diff --git a/a/content_digest b/N1/content_digest index 2dd1f82..38f2c41 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -12,7 +12,7 @@ "ref\049DCB26C.3070709@bfs.de\0" "From\0Jack Stone <jwjstone@fastmail.fm>\0" "Subject\0Re: [PATCH 20/56] inflate: Remove void casts\0" - "Date\0Wed, 08 Apr 2009 14:27:06 +0000\0" + "Date\0Wed, 08 Apr 2009 15:27:06 +0100\0" "To\0wharms@bfs.de\0" "Cc\0Bert Wesarg <bert.wesarg@googlemail.com>" linux-kernel@vger.kernel.org @@ -40,14 +40,14 @@ ">>> z = 1 << j; /* table entries for j-bit table */\n" ">>>\n" ">>> /* allocate and link in new table */\n" - ">>> - if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) =\n" - ">>> + if ((q = malloc((z + 1)*sizeof(struct huft))) =\n" + ">>> - if ((q = (struct huft *)malloc((z + 1)*sizeof(struct huft))) ==\n" + ">>> + if ((q = malloc((z + 1)*sizeof(struct huft))) ==\n" ">>> (struct huft *)NULL)\n" ">>> \n" "> and move the q= from the if. less than half the size.\n" ">\n" "> q = malloc( (z + 1)*sizeof(*q) ):\n" - "> if ( q = NULL )\n" + "> if ( q == NULL )\n" "> \n" "I was avoiding that sort of thing as this patch series is large enough\n" "as it is.\n" @@ -56,4 +56,4 @@ "\n" Jack -1e2b5f77843bba7e8f4e29566afbc6ec810c26ba8c69ecda341bb4e07a249792 +9df469562a1f2733f691dce9383da21feda9b9a73a180d10117e297d93b03eab
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.