nn_sock_dstroy renamed to nn_sock_term

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
diff --git a/src/core/global.c b/src/core/global.c
index de54ccd..ee55388 100644
--- a/src/core/global.c
+++ b/src/core/global.c
@@ -387,7 +387,7 @@
     NN_BASIC_CHECKS;
 
     /*  Deallocate the socket object. */
-    rc = nn_sock_destroy (self.socks [s]);
+    rc = nn_sock_term (self.socks [s]);
     if (nn_slow (rc == -EINTR)) {
         errno = EINTR;
         return -1;
diff --git a/src/core/sock.c b/src/core/sock.c
index e14457d..e73b34d 100644
--- a/src/core/sock.c
+++ b/src/core/sock.c
@@ -146,7 +146,7 @@
     nn_ctx_leave (&sockbase->ctx);
 }
 
-int nn_sock_destroy (struct nn_sock *self)
+int nn_sock_term (struct nn_sock *self)
 {
     int rc;
     struct nn_sockbase *sockbase;
diff --git a/src/core/sock.h b/src/core/sock.h
index b6a36d1..67ccb33 100644
--- a/src/core/sock.h
+++ b/src/core/sock.h
@@ -34,7 +34,7 @@
 
 /*  Called by nn_close() to deallocate the socket. It's a blocking function
     and can return -EINTR. */
-int nn_sock_destroy (struct nn_sock *self);
+int nn_sock_term (struct nn_sock *self);
 
 /*  Called by nn_term() to let the socket know about the process shutdown. */
 void nn_sock_zombify (struct nn_sock *self);