Module: sip-router Branch: andrei/tcp_tls_changes Commit: cf80528aab93251ae5c94fb4755c98fb6080855c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cf80528a...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Jun 23 23:13:23 2010 +0200
tsend: s/char*/const char*/ in function params.
---
tsend.c | 4 ++-- tsend.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tsend.c b/tsend.c index edbcdf1..3a18502 100644 --- a/tsend.c +++ b/tsend.c @@ -120,7 +120,7 @@ poll_loop: \ * (if less than len => couldn't send all) * bugs: signals will reset the timer */ -int tsend_stream(int fd, char* buf, unsigned int len, int timeout) +int tsend_stream(int fd, const char* buf, unsigned int len, int timeout) { int written; TSEND_INIT; @@ -157,7 +157,7 @@ error: * (if less than len => couldn't send all) * bugs: signals will reset the timer */ -int tsend_dgram(int fd, char* buf, unsigned int len, +int tsend_dgram(int fd, const char* buf, unsigned int len, const struct sockaddr* to, socklen_t tolen, int timeout) { TSEND_INIT; diff --git a/tsend.h b/tsend.h index 5544304..011bd99 100644 --- a/tsend.h +++ b/tsend.h @@ -34,8 +34,8 @@ #define __tsend_h
-int tsend_stream(int fd, char* buf, unsigned int len, int timeout); -int tsend_dgram(int fd, char* buf, unsigned int len, +int tsend_stream(int fd, const char* buf, unsigned int len, int timeout); +int tsend_dgram(int fd, const char* buf, unsigned int len, const struct sockaddr* to, socklen_t tolen, int timeout); int tsend_dgram_ev(int fd, const struct iovec* v, int count, int timeout);