diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-04-17 09:25:28 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-04-17 09:25:28 +0800 |
commit | fc281a966c29421c896746d784a6f1393fe37f3f (patch) | |
tree | c6c576c8372840c627636aa396f075a171d25c9c /camel/camel-tcp-stream-raw.c | |
parent | b06b0051c5fee1c0eafa87f164fe0b8f4e27e5ef (diff) | |
download | gsoc2013-evolution-fc281a966c29421c896746d784a6f1393fe37f3f.tar.gz gsoc2013-evolution-fc281a966c29421c896746d784a6f1393fe37f3f.tar.zst gsoc2013-evolution-fc281a966c29421c896746d784a6f1393fe37f3f.zip |
Get rid of an unused variable.
2002-04-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_folder): Get
rid of an unused variable.
* providers/smtp/camel-smtp-transport.c (smtp_helo): Use
camel_gethostbyaddr since gethostbyaddr is not reentrant.
* camel-http-stream.c (http_connect): Updated after the rename of
camel_get_host_byname.
* camel-service.c (camel_gethostbyname): Renamed.
(camel_gethostbyaddr): New cancellable/reentrant version of
gethostbyaddr.
svn path=/trunk/; revision=16484
Diffstat (limited to 'camel/camel-tcp-stream-raw.c')
-rw-r--r-- | camel/camel-tcp-stream-raw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/camel/camel-tcp-stream-raw.c b/camel/camel-tcp-stream-raw.c index cd3a74d6f2..d8aef35079 100644 --- a/camel/camel-tcp-stream-raw.c +++ b/camel/camel-tcp-stream-raw.c @@ -572,11 +572,11 @@ stream_get_local_address (CamelTcpStream *stream) { struct sockaddr_in sin; socklen_t len; - + if (getsockname (CAMEL_TCP_STREAM_RAW (stream)->sockfd, - (struct sockaddr *)&sin, &len) == -1) + (struct sockaddr *) &sin, &len) == -1) return NULL; - + return camel_tcp_address_new (CAMEL_TCP_ADDRESS_IPV4, sin.sin_port, 4, &sin.sin_addr); } @@ -586,11 +586,11 @@ stream_get_remote_address (CamelTcpStream *stream) { struct sockaddr_in sin; socklen_t len; - + if (getpeername (CAMEL_TCP_STREAM_RAW (stream)->sockfd, - (struct sockaddr *)&sin, &len) == -1) + (struct sockaddr *) &sin, &len) == -1) return NULL; - + return camel_tcp_address_new (CAMEL_TCP_ADDRESS_IPV4, sin.sin_port, 4, &sin.sin_addr); } |