mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
fix eol, close sock on error, fix include
This commit is contained in:
parent
c1ad26ca98
commit
eb4933694b
@ -1,4 +1,5 @@
|
||||
#include <switch/runtime/nxlink.h>
|
||||
#include "runtime/nxlink.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/socket.h>
|
||||
@ -25,6 +26,7 @@ int nxlinkStdio()
|
||||
|
||||
ret = connect(sock, (struct sockaddr *) &srv_addr, sizeof(srv_addr));
|
||||
if (ret != 0) {
|
||||
close(sock);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user