mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
sock: pass protocol to sockets
This commit is contained in:
@@ -382,7 +382,7 @@ static socketops_t socketops = {
|
||||
.connect = udp_connect
|
||||
};
|
||||
|
||||
socket_t *udp_createsocket() {
|
||||
socket_t *udp_createsocket(int protocol) {
|
||||
// XXX possibly move this to a slab?
|
||||
udpsocket_t *socket = alloc(sizeof(udpsocket_t));
|
||||
if (socket == NULL)
|
||||
|
||||
Reference in New Issue
Block a user