From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vorel Date: Fri, 20 Apr 2018 20:33:52 +0200 Subject: [LTP] [PATCH v3 2/2] network/in6_02: Rewrite to the new library In-Reply-To: <3e9d5d4f-18f8-51b3-746c-e64a6cf4cf68@oracle.com> References: <20180420072122.16897-1-pvorel@suse.cz> <20180420072122.16897-2-pvorel@suse.cz> <3e9d5d4f-18f8-51b3-746c-e64a6cf4cf68@oracle.com> Message-ID: <20180420183352.GA27963@x230> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Alexey, > > - tst_resm(TPASS, "if_indextoname() tests succeed"); > > + tst_res(TPASS, "if_indextoname() test succeed"); > ^ > succeeded? Good catch, thanks. > > }... > > - for (i = 0; pini[i].if_index; ++i) { > > + for (i = 0; pini[i].if_index; i++) { > ... > > + /* > > + * we need to leak at least a page to detect a leak; 1 byte per call > > * will be detected with getpagesize() calls. > > */ > > freenicount = getpagesize(); > > - for (i = 0; i < freenicount; ++i) { > > + for (i = 0; i < freenicount; i++) { > Hmm, looks like you are intentionally changing '++i' with 'i++' for > the all 'for' loops in this patch, any good reason to do that? No, it seems to me convention/readability. $ git grep i++ |wc -l 2369 $ git grep ++i |wc -l 220 But it's unimportant, I'll remove that. > Other than that, the patch looks good. Kind regards, Petr