[hipl-commit] [trunk] Rev 4177: Drop inline qualifier from set_lsi_prefix().

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 8 Apr 2010 14:35:56 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 08/04/2010 at 14:35:56
Revision: 4177
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Drop inline qualifier from set_lsi_prefix().
  
  Inlining decisions are often best left to the compiler. Furthermore, the
  header declaration did not have the inline qualifier, which was causing
  problems on MAEMO.

Modified:
  M  lib/core/prefix.c

=== modified file 'lib/core/prefix.c'
--- lib/core/prefix.c   2010-03-10 17:44:36 +0000
+++ lib/core/prefix.c   2010-04-08 11:32:58 +0000
@@ -108,7 +108,7 @@
  *
  * @param lsi an IPv4 address for which to set the LSI prefix
  */
-inline void set_lsi_prefix(hip_lsi_t *lsi)
+void set_lsi_prefix(hip_lsi_t *lsi)
 {
     hip_closest_prefix_type_t lsi_begin;
     memcpy(&lsi_begin, lsi, sizeof(hip_closest_prefix_type_t));

Other related posts:

  • » [hipl-commit] [trunk] Rev 4177: Drop inline qualifier from set_lsi_prefix(). - Diego Biurrun