Browse code

- small change in avp lists

Jan Janak authored on 30/11/2005 16:09:01
Showing 2 changed files
... ...
@@ -509,7 +509,7 @@ void reset_avps(void)
509 509
 }
510 510
 
511 511
 
512
-avp_list_t set_avp_list( unsigned short flags, avp_list_t* list )
512
+avp_list_t* set_avp_list( unsigned short flags, avp_list_t* list )
513 513
 {
514 514
 	avp_list_t* prev;
515 515
 
... ...
@@ -534,7 +534,7 @@ avp_list_t set_avp_list( unsigned short flags, avp_list_t* list )
534 534
 	        *crt_glist = list;
535 535
 	}
536 536
 
537
-	return *prev;
537
+	return prev;
538 538
 }
539 539
 
540 540
 
... ...
@@ -106,10 +106,10 @@ struct search_state {
106 106
 };
107 107
 
108 108
 /* avp aliases structs*/
109
-struct avp_spec {
109
+typedef struct avp_spec {
110 110
 	int type;
111 111
 	int_str name;
112
-};
112
+} avp_spec_t;
113 113
 
114 114
 /* AVP types */
115 115
 #define AVP_NAME_STR     (1<<0)
... ...
@@ -157,7 +157,7 @@ void get_avp_val(avp_t *avp, int_str *val );
157 157
 str* get_avp_name(avp_t *avp);
158 158
 
159 159
 avp_list_t get_avp_list(unsigned short flags);
160
-avp_list_t set_avp_list(unsigned short flags, avp_list_t* list);
160
+avp_list_t* set_avp_list(unsigned short flags, avp_list_t* list);
161 161
 
162 162
 
163 163
 /* global alias functions (manipulation and parsing)*/