libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol
[sfrench/samba-autobuild/.git] / source4 / echo_server / echo_server.c
index 9393a972e276f486d631d41bcb00ff0566c195d7..60729d8535cc67723071703dd129cb61131be31c 100644 (file)
@@ -197,7 +197,7 @@ static NTSTATUS echo_add_socket(struct echo_server *echo,
                                                address, port,
                                                &echo_socket->local_address);
        if (ret != 0) {
-               status = map_nt_error_from_unix(errno);
+               status = map_nt_error_from_unix_common(errno);
                return status;
        }
 
@@ -212,7 +212,7 @@ static NTSTATUS echo_add_socket(struct echo_server *echo,
                                     echo_udp_socket,
                                     &echo_udp_socket->dgram);
        if (ret != 0) {
-               status = map_nt_error_from_unix(errno);
+               status = map_nt_error_from_unix_common(errno);
                DEBUG(0, ("Failed to bind to %s:%u UDP - %s\n",
                          address, port, nt_errstr(status)));
                return status;