Skip to content

Commit

Permalink
Fix rebasing problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddTheSane committed May 24, 2024
1 parent 2ba54a5 commit 8e31208
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions AudioEncode/encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "Aencode.h"

static int32_t aenc_ReadSamp(void *data) {
FILE *f = (FILE *)data;
int a, b;
a = getc(f);
if (a == EOF)
Expand Down
2 changes: 1 addition & 1 deletion lib/networking.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ int nw_SendPilotTrackerPacket(void *packet);
int nw_ReceivePilotTracker(void *packet);

// buffer a packet (maintain order!)
void nw_psnet_buffer_packet(ubyte *data, int length, network_address *from);
void nw_psnet_buffer_packet(uint8_t *data, int length, network_address *from);

// This is all the reliable UDP stuff...
#define MAXNETBUFFERS \
Expand Down
8 changes: 4 additions & 4 deletions networking/networking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,12 +527,12 @@ static int nw_PingCompare(const void *arg1, const void *arg2);
static void nw_ReliableResend(void);

/// Get the index of the next packet in order!
static int nw_psnet_buffer_get_next(ubyte *data, int *length, network_address *from);
static int nw_psnet_buffer_get_next(uint8_t *data, int *length, network_address *from);

/// Get the index of the next packet in order!
static int nw_psnet_buffer_get_next_by_dpid(ubyte *data, int *length, unsigned long dpid);
static int nw_psnet_buffer_get_next_by_dpid(uint8_t *data, int *length, unsigned long dpid);

static void nw_HandleUnreliableData(ubyte *data, int len, network_address *from_addr);
static void nw_HandleUnreliableData(uint8_t *data, int len, network_address *from_addr);

/// Called by \c psnet_init to initialize the listen socket used by a host/server.
static int nw_InitReliableSocket();
Expand All @@ -542,7 +542,7 @@ static void nw_SendReliableAck(SOCKADDR *raddr, unsigned int sig, network_protoc
/// Initialize the buffering system.
static void nw_psnet_buffer_init();

static void nw_HandleConnectResponse(ubyte *data, int len, network_address *server_addr);
static void nw_HandleConnectResponse(uint8_t *data, int len, network_address *server_addr);

void CloseNetworking() {
if (Sockets_initted != 1)
Expand Down

0 comments on commit 8e31208

Please sign in to comment.