diff for duplicates of <49DCB26C.3070709@bfs.de> diff --git a/a/1.txt b/N1/1.txt index 2fbdcf9..839f713 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -26,8 +26,8 @@ Bert Wesarg schrieb: >> 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) > Thats an unneeded cast too. (After that, the NULL can move up one line.) > @@ -38,7 +38,7 @@ Bert Wesarg schrieb: and move the q= from the if. less than half the size. q = malloc( (z + 1)*sizeof(*q) ): -if ( q = NULL ) +if ( q == NULL ) re, wh diff --git a/a/content_digest b/N1/content_digest index 02f2c78..cdffb41 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -11,7 +11,7 @@ "ref\036ca99e90904080439u7098d2feka5dd39f8ab6a470c@mail.gmail.com\0" "From\0walter harms <wharms@bfs.de>\0" "Subject\0Re: [PATCH 20/56] inflate: Remove void casts\0" - "Date\0Wed, 08 Apr 2009 14:19:24 +0000\0" + "Date\0Wed, 08 Apr 2009 16:19:24 +0200\0" "To\0Bert Wesarg <bert.wesarg@googlemail.com>\0" "Cc\0Jack Stone <jwjstone@fastmail.fm>" linux-kernel@vger.kernel.org @@ -47,8 +47,8 @@ ">> 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" "> Thats an unneeded cast too. (After that, the NULL can move up one line.)\n" "> \n" @@ -59,9 +59,9 @@ "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" "re,\n" wh -cfa4852e3591a0b3e6df9d921efbecce61842640d01bbce2273758ab768883a9 +1cd1515018546704290281b3920502cf288baa0a8aa36563505dae5b87e907db
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.