mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-18 01:01:57 -04:00
Reformat code
This commit is contained in:
parent
b89bc2770f
commit
0567908a05
@ -4,6 +4,7 @@
|
||||
// (See accompanying file LICENSE or copy at
|
||||
// http://www.opensource.org/licenses/MIT)
|
||||
//=======================================================================
|
||||
|
||||
#include "tlib/net.hpp"
|
||||
#include "tlib/malloc.hpp"
|
||||
|
||||
@ -129,7 +130,8 @@ void tlib::release_packet(packet& packet){
|
||||
}
|
||||
}
|
||||
|
||||
tlib::socket::socket(socket_domain domain, socket_type type, socket_protocol protocol) : domain(domain), type(type), protocol(protocol), fd(0), error_code(0) {
|
||||
tlib::socket::socket(socket_domain domain, socket_type type, socket_protocol protocol)
|
||||
: domain(domain), type(type), protocol(protocol), fd(0), error_code(0) {
|
||||
auto open_status = tlib::socket_open(domain, type, protocol);
|
||||
|
||||
if (open_status.valid()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user