From 944eff06b847a95cb383bf3b122c49f10f1830d9 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 16 May 2017 20:25:54 +0200 Subject: [PATCH] Cleanup --- network/netplay/netplay_handshake.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/network/netplay/netplay_handshake.c b/network/netplay/netplay_handshake.c index fba4ce37b3..e875313427 100644 --- a/network/netplay/netplay_handshake.c +++ b/network/netplay/netplay_handshake.c @@ -107,16 +107,9 @@ void netplay_log_connection(const struct sockaddr_storage *their_addr, void netplay_log_connection(const struct sockaddr_storage *their_addr, unsigned slot, const char *nick, char *s, size_t len) { - char msg[512]; - - msg[0] = '\0'; - - snprintf(msg, sizeof(msg), msg_hash_to_str(MSG_GOT_CONNECTION_FROM), + /* Stub code - will need to be implemented */ + snprintf(s, len, msg_hash_to_str(MSG_GOT_CONNECTION_FROM), nick); - runloop_msg_queue_push(msg, 1, 180, false); - RARCH_LOG("%s\n", msg); - RARCH_LOG("%s %u\n", - msg_hash_to_str(MSG_CONNECTION_SLOT), slot); } #endif