[sr-dev] git:master: tm: delete obselete uri2sock function, its not compiled since almost 5 years

Henning Westerholt henning.westerholt at 1und1.de
Wed Jul 6 10:06:15 CEST 2011


Module: sip-router
Branch: master
Commit: 71bfc3f3c1b22ff6f06c0b1fcafc4d6a75abd66b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=71bfc3f3c1b22ff6f06c0b1fcafc4d6a75abd66b

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Tue Jul  5 23:50:10 2011 +0200

tm: delete obselete uri2sock function, its not compiled since almost 5 years

---

 modules/tm/ut.h |   34 ----------------------------------
 1 files changed, 0 insertions(+), 34 deletions(-)

diff --git a/modules/tm/ut.h b/modules/tm/ut.h
index 4ca2751..3aa829a 100644
--- a/modules/tm/ut.h
+++ b/modules/tm/ut.h
@@ -386,38 +386,4 @@ inline static struct dest_info *uri2dst(struct dest_info* dst,
 }
 #endif /* USE_DNS_FAILOVER */
 
-
-
-#if 0
-/*
- * Convert a URI into the corresponding sockaddr_union (address to send to) and
- *  send socket_info (socket/address from which to send)
- *  to_su is filled with the destination and the socket_info that will be 
- *  used for sending is returned.
- *  On error return 0.
- *
- *  NOTE: this function is deprecated, you should use uri2dst instead
- */
-static inline struct socket_info *uri2sock(struct sip_msg* msg, str *uri,
-									union sockaddr_union *to_su, int proto)
-{
-	struct dest_info dst;
-
-	if (uri2dst(&dst, msg, uri, proto)==0){
-		LOG(L_ERR, "ERROR: uri2sock: Can't create a dst proxy\n");
-		ser_error=E_BAD_ADDRESS;
-		return 0;
-	}
-	*to_su=dst.to; /* copy su */
-	
-	/* we use dst->send_socket since uri2dst just set it correctly*/
-	if (dst.send_sock==0) {
-		LOG(L_ERR, "ERROR: uri2sock: no corresponding socket for af %d\n", 
-		    to_su->s.sa_family);
-		ser_error = E_NO_SOCKET;
-	}
-	return dst.send_sock;
-}
-#endif
-
 #endif /* _TM_UT_H */




More information about the sr-dev mailing list