mn_socket; wrong return code on error from mn_inet_pton().

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/8084449d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8084449d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8084449d

Branch: refs/heads/develop
Commit: 8084449db7e1daffb94067098790733e5327a52a
Parents: b71c9ea
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Sep 16 13:51:13 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Sep 16 15:23:01 2016 -0700

----------------------------------------------------------------------
 sys/mn_socket/src/mn_socket_aconv.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8084449d/sys/mn_socket/src/mn_socket_aconv.c
----------------------------------------------------------------------
diff --git a/sys/mn_socket/src/mn_socket_aconv.c 
b/sys/mn_socket/src/mn_socket_aconv.c
index 1ca6010..7e48d65 100644
--- a/sys/mn_socket/src/mn_socket_aconv.c
+++ b/sys/mn_socket/src/mn_socket_aconv.c
@@ -53,7 +53,10 @@ mn_inet_pton(int af, const char *src, void *dst)
         }
         return 1;
     } else {
-        return MN_EAFNOSUPPORT;
+        /*
+         * Add code here. XXX
+         */
+        return 0;
     }
 }
 

Reply via email to