From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Rozman Date: Tue, 5 Dec 2017 09:44:26 +0000 Message-ID: <99D61A626FDA8A4B90A270669121BE1085B4AC9A@...2294...> References: <20171010231130.6832-1-simon@...2293...> <20171010231130.6832-9-simon@...2293...> <20171105192019.GM958@...1296...> <99D61A626FDA8A4B90A270669121BE108587DA0D@...2294...> <99D61A626FDA8A4B90A270669121BE108587DF29@...2294...> <99D61A626FDA8A4B90A270669121BE10858830C4@...2294...> <20171204192515.GA69387@...1296...> In-Reply-To: <20171204192515.GA69387@...1296...> Content-Language: en-US MIME-Version: 1.0 Subject: Re: [Openvpn-devel] [PATCH 09/13] Signed/unsigned warnings of MSVC resolved List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: Gert Doering Cc: Selva , "openvpn-devel@lists.sourceforge.net" Hi, > On Wed, Nov 08, 2017 at 06:46:53PM +0000, Simon Rozman wrote: > > > The best time to re-factor a function would be when a a new use > > > case needs to change its semantics. Apart from the ill-chosen -err > > > as a return value, currently it returns 0 if automatic metric is in > > > use, making it impossible to use it as a generic function to find the= current > metric of an interface. > > > > > > In fact I've a pending patch where such a change would help. > [..] > > I shall give it a look after the Hackathon. >=20 > "ping"? >=20 > This seems to be the only hunk left from the MSVC correction series (as f= ar > as .c/.h files are concerned, not .proj) >=20 I really appreciate your "ping" Gert. I totally forgot about this one and h= ave now flagged this thread so I shall finish it in the following weeks. The get_interface_metric() function should get a more thorough rewrite than= just a compiler warning shut-up. So the patch will probably get divided in= two - the simple signed/unsigned fixes and get_interface_metric() redesign. Best regards, Simon