From: Wayne Davison Date: Tue, 22 May 2007 05:58:59 +0000 (+0000) Subject: Added a comment to a shared iterator to avoid a warning from IBM's checker. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/3d0a159d96d153144fe3bd2a2c59a62ec2a62d89?hp=8ea07c0030ee9dd2c56d4c8c57139887c0c6794e Added a comment to a shared iterator to avoid a warning from IBM's checker. --- diff --git a/hlink.c b/hlink.c index 25a7ed39..40d15395 100644 --- a/hlink.c +++ b/hlink.c @@ -225,7 +225,7 @@ static void match_gnums(int32 *ndx_list, int ndx_count) for (from = 0; from < ndx_count; from++) { for (file = cur_flist->sorted[ndx_list[from]], gnum = F_HL_GNUM(file), prev = -1; from < ndx_count-1; - file = file_next, gnum = gnum_next, from++) + file = file_next, gnum = gnum_next, from++) /*SHARED ITERATOR*/ { file_next = cur_flist->sorted[ndx_list[from+1]]; gnum_next = F_HL_GNUM(file_next); diff --git a/lib/wildmatch.c b/lib/wildmatch.c index 4b54864f..f3a1731e 100644 --- a/lib/wildmatch.c +++ b/lib/wildmatch.c @@ -165,7 +165,7 @@ static int dowild(const uchar *p, const uchar *text, const uchar*const *a) } else if (p_ch == '[' && p[1] == ':') { const uchar *s; int i; - for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} + for (s = p += 2; (p_ch = *p) && p_ch != ']'; p++) {} /*SHARED ITERATOR*/ if (!p_ch) return ABORT_ALL; i = p - s - 1;