mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
netfile: fix invalid conversion
Origin commit data
------------------
Branch: ni/coolstream
Commit: ac1bab8f02
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-01-23 (Thu, 23 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -200,7 +200,7 @@ static int request_file(URL *url);
|
||||
static int getCacheSlot(FILE *fd);
|
||||
static int push(FILE *fd, char *buf, long len);
|
||||
static int pop(FILE *fd, char *buf, long len);
|
||||
static void CacheFillThread(void *url);
|
||||
static void *CacheFillThread(void *url);
|
||||
static void ShoutCAST_MetaFilter(STREAM_FILTER *);
|
||||
static void ShoutCAST_DestroyFilter(void *a);
|
||||
static STREAM_FILTER *ShoutCAST_InitFilter(int);
|
||||
@@ -545,7 +545,7 @@ int request_file(URL *url)
|
||||
pthread_create(
|
||||
&cache[slot].fill_thread,
|
||||
&cache[slot].attr,
|
||||
(void *(*)(void*))&CacheFillThread, (void*)&cache[slot]);
|
||||
CacheFillThread, (void*)&cache[slot]);
|
||||
dprintf(stderr, "request_file: slot %d fill_thread 0x%x\n", slot, (int)cache[slot].fill_thread);
|
||||
}
|
||||
|
||||
@@ -1669,12 +1669,12 @@ static bool getChunkSizeLine(STREAM_CACHE *scache,char *line,int size)
|
||||
return false;
|
||||
}
|
||||
|
||||
void CacheFillThread(void *c)
|
||||
void *CacheFillThread(void *c)
|
||||
{
|
||||
STREAM_CACHE *scache = (STREAM_CACHE*)c;
|
||||
|
||||
if(scache->closed)
|
||||
return;
|
||||
return NULL;
|
||||
|
||||
set_threadname("netfile:cache");
|
||||
dprintf(stderr, "CacheFillThread: thread started, using stream %p\n", scache->fd);
|
||||
|
Reference in New Issue
Block a user