Created
August 23, 2011 17:34
-
-
Save bnoordhuis/b0dfb564bb7c9d8af42f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 477a118922d34dd26dc6269068cc00ba1d9a7c4c Mon Sep 17 00:00:00 2001 | |
From: Ben Noordhuis <info@bnoordhuis.nl> | |
Date: Tue, 23 Aug 2011 19:33:12 +0200 | |
Subject: [PATCH] uv_getsockname now operates on uv_handle_t handles | |
--- | |
include/uv.h | 2 +- | |
src/uv-unix.c | 2 +- | |
src/win/tcp.c | 2 +- | |
3 files changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/include/uv.h b/include/uv.h | |
index f39e623..040d423 100644 | |
--- a/include/uv.h | |
+++ b/include/uv.h | |
@@ -420,7 +420,7 @@ struct uv_connect_s { | |
}; | |
-int uv_getsockname(uv_tcp_t* handle, struct sockaddr* name, int* namelen); | |
+int uv_getsockname(uv_handle_t* handle, struct sockaddr* name, int* namelen); | |
/* | |
diff --git a/src/uv-unix.c b/src/uv-unix.c | |
index ff42cdb..6c315bd 100644 | |
--- a/src/uv-unix.c | |
+++ b/src/uv-unix.c | |
@@ -1639,7 +1639,7 @@ out: | |
} | |
-int uv_getsockname(uv_tcp_t* handle, struct sockaddr* name, int* namelen) { | |
+int uv_getsockname(uv_handle_t* handle, struct sockaddr* name, int* namelen) { | |
socklen_t socklen; | |
int saved_errno; | |
diff --git a/src/win/tcp.c b/src/win/tcp.c | |
index 61402ab..654cb9b 100644 | |
--- a/src/win/tcp.c | |
+++ b/src/win/tcp.c | |
@@ -548,7 +548,7 @@ int uv_tcp_connect6(uv_connect_t* req, uv_tcp_t* handle, | |
} | |
-int uv_getsockname(uv_tcp_t* handle, struct sockaddr* name, int* namelen) { | |
+int uv_getsockname(uv_handle_t* handle, struct sockaddr* name, int* namelen) { | |
int result; | |
if (handle->flags & UV_HANDLE_SHUTTING) { | |
-- | |
1.7.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment