More of where that came from

This commit is contained in:
twinaphex 2017-01-17 15:39:14 +01:00
parent c3f16de4d4
commit 8366278d45
2 changed files with 6 additions and 3 deletions

View File

@ -834,8 +834,10 @@ bool command_set(command_handle_t *handle)
bool command_free(command_t *handle)
{
#if defined(HAVE_NETWORKING) && defined(HAVE_NETWORK_CMD)
#ifdef HAVE_COMMAND
if (handle && handle->net_fd >= 0)
socket_close(handle->net_fd);
#endif
#endif
free(handle);

View File

@ -97,12 +97,13 @@ unsigned rpl_entry_selection_ptr = 0;
unsigned rdb_entry_start_game_selection_ptr = 0;
size_t hack_shader_pass = 0;
#ifdef HAVE_NETWORKING
/* HACK - we have to find some way to pass state inbetween
* function pointer callback functions that don't necessarily
* call each other. */
char *core_buf;
size_t core_len;
char *core_buf = NULL;
size_t core_len = 0;
#ifdef HAVE_NETWORKING
#ifdef HAVE_LAKKA
static char lakka_project[128];