mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-15 07:27:42 -04:00
Reformat code
This commit is contained in:
parent
b89bc2770f
commit
0567908a05
@ -4,6 +4,7 @@
|
|||||||
// (See accompanying file LICENSE or copy at
|
// (See accompanying file LICENSE or copy at
|
||||||
// http://www.opensource.org/licenses/MIT)
|
// http://www.opensource.org/licenses/MIT)
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
#include "tlib/net.hpp"
|
#include "tlib/net.hpp"
|
||||||
#include "tlib/malloc.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);
|
auto open_status = tlib::socket_open(domain, type, protocol);
|
||||||
|
|
||||||
if (open_status.valid()) {
|
if (open_status.valid()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user