Browse code

core: removed ifdefs for WITH_XAVP

- xavps are enabled for about 10 years and used extensively

Daniel-Constantin Mierla authored on 18/04/2019 11:49:35
Showing 3 changed files
... ...
@@ -46,9 +46,7 @@
46 46
 #include "dset.h"
47 47
 #include "fmsg.h"
48 48
 #include "usr_avp.h"
49
-#ifdef WITH_XAVP
50 49
 #include "xavp.h"
51
-#endif
52 50
 #include "select_buf.h"
53 51
 
54 52
 #include "tcp_server.h"  /* for tcpconn_add_alias */
... ...
@@ -583,7 +581,5 @@ error00:
583 581
 void ksr_msg_env_reset(void)
584 582
 {
585 583
 	reset_avps();
586
-#ifdef WITH_XAVP
587 584
 	xavp_reset_list();
588
-#endif
589 585
 }
... ...
@@ -20,8 +20,6 @@
20 20
  * Module: \ref core
21 21
  */
22 22
 
23
-#ifdef WITH_XAVP
24
-
25 23
 #include <stdio.h>
26 24
 #include <string.h>
27 25
 
... ...
@@ -1041,4 +1039,3 @@ int xavp_serialize_fields(str *rname, char *obuf, int olen)
1041 1039
 	}
1042 1040
 	return rlen;
1043 1041
 }
1044
-#endif
... ...
@@ -1,5 +1,5 @@
1 1
 /*
2
- * Copyright (C) 2009 Daniel-Constantin Mierla (asipto.com) 
2
+ * Copyright (C) 2009 Daniel-Constantin Mierla (asipto.com)
3 3
  *
4 4
  * Permission to use, copy, modify, and distribute this software for any
5 5
  * purpose with or without fee is hereby granted, provided that the above
... ...
@@ -18,8 +18,6 @@
18 18
 #ifndef _SR_XAVP_H_
19 19
 #define _SR_XAVP_H_
20 20
 
21
-#ifdef WITH_XAVP
22
-
23 21
 #include <time.h>
24 22
 #include "str.h"
25 23
 #include "str_list.h"
... ...
@@ -111,6 +109,5 @@ int xavp_serialize_fields(str *rname, char *obuf, int olen);
111 109
 
112 110
 int xavp_set_child_ival(str *rname, str *cname, int ival);
113 111
 int xavp_set_child_sval(str *rname, str *cname, str *sval);
114
-#endif
115 112
 
116 113
 #endif