Browse code

- unnecesarry parameter removed from *_duplicate_rr (thanks to Daniel)

Jan Janak authored on 13/10/2003 21:40:21
Showing 3 changed files
... ...
@@ -321,7 +321,7 @@ static inline int get_route_set(struct sip_msg* _m, rr_t** _rs, unsigned char _o
321 321
 
322 322
 			p = (rr_t*)ptr->parsed;
323 323
 			while(p) {
324
-				if (shm_duplicate_rr(_m, &t, p) < 0) {
324
+				if (shm_duplicate_rr(&t, p) < 0) {
325 325
 					LOG(L_ERR, "get_route_set(): Error while duplicating rr_t\n");
326 326
 					goto error;
327 327
 				}
... ...
@@ -223,12 +223,12 @@ static inline void xlate_pointers(rr_t* _orig, rr_t* _r)
223 223
 /*
224 224
  * Duplicate a single rr_t structure using pkg_malloc or shm_malloc
225 225
  */
226
-static inline int do_duplicate_rr(struct sip_msg* _m, rr_t** _new, rr_t* _r, int _shm)
226
+static inline int do_duplicate_rr(rr_t** _new, rr_t* _r, int _shm)
227 227
 {
228 228
 	int len, ret;
229 229
 	rr_t* res;
230 230
 
231
-	if (!_m || !_new || !_r) {
231
+	if (!_new || !_r) {
232 232
 		LOG(L_ERR, "duplicate_rr(): Invalid parameter value\n");
233 233
 		return -1;
234 234
 	}
... ...
@@ -272,16 +272,16 @@ static inline int do_duplicate_rr(struct sip_msg* _m, rr_t** _new, rr_t* _r, int
272 272
 /*
273 273
  * Duplicate a single rr_t structure using pkg_malloc
274 274
  */
275
-int duplicate_rr(struct sip_msg* _m, rr_t** _new, rr_t* _r)
275
+int duplicate_rr(rr_t** _new, rr_t* _r)
276 276
 {
277
-	return do_duplicate_rr(_m, _new, _r, 0);
277
+	return do_duplicate_rr(_new, _r, 0);
278 278
 }
279 279
 
280 280
 
281 281
 /*
282 282
  * Duplicate a single rr_t structure using pkg_malloc
283 283
  */
284
-int shm_duplicate_rr(struct sip_msg* _m, rr_t** _new, rr_t* _r)
284
+int shm_duplicate_rr(rr_t** _new, rr_t* _r)
285 285
 {
286
-	return do_duplicate_rr(_m, _new, _r, 1);
286
+	return do_duplicate_rr(_new, _r, 1);
287 287
 }
... ...
@@ -79,13 +79,13 @@ void print_rr(FILE* _o, rr_t* _r);
79 79
 /*
80 80
  * Duplicate a single rr_t structure using pkg_malloc
81 81
  */
82
-int duplicate_rr(struct sip_msg* _m, rr_t** _new, rr_t* _r);
82
+int duplicate_rr(rr_t** _new, rr_t* _r);
83 83
 
84 84
 
85 85
 /*
86 86
  * Duplicate a single rr_t structure using pkg_malloc
87 87
  */
88
-int shm_duplicate_rr(struct sip_msg* _m, rr_t** _new, rr_t* _r);
88
+int shm_duplicate_rr(rr_t** _new, rr_t* _r);
89 89
 
90 90
 
91 91
 #endif /* PARSE_RR_H */