mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
Silence warnings caused by implicit casts between uint8_t and char.
In most places casting was easy to avoid as the variables have been casted forth and back between both data types. Anyway - the affected functions are never used by streamdev.
This commit is contained in:
parent
1e9e200e8a
commit
87e24499e3
@ -2025,7 +2025,7 @@ void write_mpg(int fstart, uint64_t length, int fdin, int fdout)
|
|||||||
fstat (fdout, &sb);
|
fstat (fdout, &sb);
|
||||||
buf_size = sb.st_blksize;
|
buf_size = sb.st_blksize;
|
||||||
|
|
||||||
buf = (char *) alloca (buf_size + sizeof (int));
|
buf = (uint8_t *) alloca (buf_size + sizeof (int));
|
||||||
|
|
||||||
lseek(fdin, fstart, SEEK_SET);
|
lseek(fdin, fstart, SEEK_SET);
|
||||||
|
|
||||||
@ -2208,7 +2208,7 @@ void cut_mpg(char *name, uint64_t size)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void write_all (int fd, uint8_t *data, int length)
|
void write_all (int fd, const char *data, int length)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
@ -2222,7 +2222,7 @@ void write_all (int fd, uint8_t *data, int length)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void read_all (int fd, uint8_t *data, int length)
|
void read_all (int fd, char *data, int length)
|
||||||
{
|
{
|
||||||
int c = 0;
|
int c = 0;
|
||||||
|
|
||||||
@ -2243,9 +2243,9 @@ void read_all (int fd, uint8_t *data, int length)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
char *url2host (uint8_t *url, char **name, uint32_t *ip, uint32_t *port)
|
char *url2host (char *url, char **name, uint32_t *ip, uint32_t *port)
|
||||||
{
|
{
|
||||||
uint8_t *murl;
|
char *murl;
|
||||||
struct hostent *hoste;
|
struct hostent *hoste;
|
||||||
struct in_addr haddr;
|
struct in_addr haddr;
|
||||||
int found_ip = 1;
|
int found_ip = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user