From d33fabf0c5e1ea9a4e3118836dc459fa971d7a1d Mon Sep 17 00:00:00 2001 From: Plex Date: Mon, 25 Oct 2021 03:41:36 +0200 Subject: socket connected --- mctypes.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'mctypes.c') diff --git a/mctypes.c b/mctypes.c index 6afa230..6a6637a 100644 --- a/mctypes.c +++ b/mctypes.c @@ -18,21 +18,6 @@ varint writeVarInt(unsigned int x) } return n; } -/* -writeVarInt(varint x, int s) -{ - while (1) { - if ((x & 0xFFFFFF80) == 0) { - if (send(s, &x, 8, 0) == -1) - exit(EXIT_FAILURE); - return; - } - if (send(s, &x, 8, 0) == -1) - exit(EXIT_FAILURE); - - x >>= 7; - } -} */ int readVarInt(varint x) { -- cgit v1.2.3