[hipl-commit] [trunk] Rev 4276: i3: Mark set_loworder_bits() as static, it is only used within the file.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 13 Apr 2010 21:01:17 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 13/04/2010 at 21:01:17
Revision: 4276
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  i3: Mark set_loworder_bits() as static, it is only used within the file.
  
  Since the only use is commented out, disable the function via the 
preprocessor.

Modified:
  M  i3/chord/gen_conf.c

=== modified file 'i3/chord/gen_conf.c'
--- i3/chord/gen_conf.c 2010-04-13 16:29:54 +0000
+++ i3/chord/gen_conf.c 2010-04-13 18:00:25 +0000
@@ -89,7 +89,8 @@
     return inet_addr("127.0.0.1");
 }
 
-void set_loworder_bits(chordID *id)
+#if 0
+static void set_loworder_bits(chordID *id)
 {
     int i;
 #define ID_SERVER_LEN 6
@@ -97,6 +98,7 @@
         id->x[i] = 0xff;
     }
 }
+#endif /* 0 */
 
 int main(int argc, char **argv)
 {

Other related posts:

  • » [hipl-commit] [trunk] Rev 4276: i3: Mark set_loworder_bits() as static, it is only used within the file. - Diego Biurrun