diff for duplicates of <559C06B4.2010808@gonehiking.org> diff --git a/a/1.txt b/N1/1.txt index e80a960..383ef24 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -35,9 +35,10 @@ I suspect that is how this code came from Mylex many years ago. Using strncmp would indeed be a better way to clean this up. Also, further down in the same routine: - if (FPT_scamInfo[match].state = ID_UNUSED) { + if (FPT_scamInfo[match].state == ID_UNUSED) { for (k = 0; k < ID_STRING_LENGTH; k++) { - FPT_scamInfo[match].id_string[k] p_id_string[k]; + FPT_scamInfo[match].id_string[k] = + p_id_string[k]; } diff --git a/a/content_digest b/N1/content_digest index e9393c6..6b6f287 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\0CAH6sp9PzQUPo2_VczkEtwzhYW8AcNTqNYWF6kwMvk_N8peGhxg@mail.gmail.com\0" "From\0Khalid Aziz <khalid@gonehiking.org>\0" "Subject\0Re: [PATCH] [SCSI] FlashPoint: optimize string comparison\0" - "Date\0Tue, 07 Jul 2015 17:04:52 +0000\0" + "Date\0Tue, 07 Jul 2015 11:04:52 -0600\0" "To\0Frans Klaver <fransklaver@gmail.com>" " Christophe JAILLET <christophe.jaillet@wanadoo.fr>\0" "Cc\0JBottomley@odin.com" @@ -48,9 +48,10 @@ "strncmp would indeed be a better way to clean this up. Also, further \n" "down in the same routine:\n" "\n" - " if (FPT_scamInfo[match].state = ID_UNUSED) {\n" + " if (FPT_scamInfo[match].state == ID_UNUSED) {\n" " for (k = 0; k < ID_STRING_LENGTH; k++) {\n" - " FPT_scamInfo[match].id_string[k] p_id_string[k];\n" + " FPT_scamInfo[match].id_string[k] =\n" + " p_id_string[k];\n" " }\n" "\n" "\n" @@ -62,4 +63,4 @@ "Thanks,\n" Khalid -fe2b4164f9dd86b681fe124973a8d9e869b999531b10bc4d3e89e80cffd651c1 +1aebfb50af7723bb7918e17eb49fac393ca19a4d608a3a203202a26cde65431d
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.