소스 검색

carrierroute: enclosed unused functions in ifdefs

- they were used by mi commands and may be needed when re-introducing
  the equivalent in rpc commands
- reported by GH #1010
Daniel-Constantin Mierla 8 년 전
부모
커밋
c62409bdd3
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/modules/carrierroute/cr_fifo.c

+ 6 - 0
src/modules/carrierroute/cr_fifo.c

@@ -41,6 +41,7 @@
 #include "cr_rule.h"
 
 
+#ifdef MI_REMOVED
 /**
  * Defines the option set for the different fifo commands
  * Every line is for a command,
@@ -54,6 +55,7 @@ static unsigned int opt_settings[5][3] = {
         {O_HOST|O_DOMAIN|O_PREFIX, O_PROB|O_NEW_TARGET, O_R_PREFIX|O_R_SUFFIX|O_H_INDEX},
         {O_HOST|O_DOMAIN|O_PREFIX, O_PROB, O_R_PREFIX|O_R_SUFFIX|O_NEW_TARGET|O_H_INDEX}
 };
+#endif
 
 int fifo_err;
 
@@ -456,6 +458,7 @@ static int dump_tree_recursor (struct mi_node* msg, struct dtrie_node_t *node, c
 }
 #endif
 
+#ifdef MI_REMOVED
 /**
  * parses the command line argument for options
  *
@@ -606,8 +609,10 @@ static int get_fifo_opts(str * buf, fifo_opt_t * opts, unsigned int opt_set[]) {
 	}
 	return 0;
 }
+#endif
 
 
+#ifdef MI_REMOVED
 /**
  * loads the config data into shared memory (but doesn't really
  * share it), updates the routing data and writes it to the config
@@ -729,6 +734,7 @@ errout:
 	clear_route_data(rd);
 	return -1;
 }
+#endif
 
 
 /**