Return-Path: Date: Sat, 3 Aug 2013 23:17:57 +0200 From: Simon Wunderlich Message-ID: <20130803211755.GF12891@pandem0nium> References: <1375303667-3018-1-git-send-email-ordex@autistici.org> <1375303667-3018-11-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="924gEkU1VlJlwnwX" Content-Disposition: inline In-Reply-To: <1375303667-3018-11-git-send-email-ordex@autistici.org> Subject: Re: [B.A.T.M.A.N.] [RFCv2 10/10] batman-adv: adapt the TT component to use the new API functions Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking Cc: Antonio Quartulli --924gEkU1VlJlwnwX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Wed, Jul 31, 2013 at 10:47:47PM +0200, Antonio Quartulli wrote: > + > + if (metric <= best_metric) > + continue; > + > + best_entry = orig_entry; > + best_metric = metric; Why don't you use the bat_metric_compare() function here? BTW, do we need bat_metric_compare() anyway? I think both TQ and the metric in BATMAN V can work with integer comparison, so as long as we don't add some other "special" metrics we might not need this bat_metric_compare() at all? Simon --924gEkU1VlJlwnwX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlH9c4MACgkQrzg/fFk7axbj3QCdH1N+FrMbh3y37IzZycTb1bTh dTwAnA+UUG7f2k1N9pmSrbyRfSCfLWqn =bXdq -----END PGP SIGNATURE----- --924gEkU1VlJlwnwX--