diff options
author | schmirl <schmirl> | 2007-03-19 12:05:25 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2007-03-19 12:05:25 +0000 |
commit | 87e24499e3857b8cea36d9ec9f38fdb9443fd92a (patch) | |
tree | f923ba10b831f172e74415baad66678731a51687 | |
parent | 1e9e200e8a9e781d5cdc8da8a5ac7d2cad49144c (diff) | |
download | vdr-plugin-streamdev-87e24499e3857b8cea36d9ec9f38fdb9443fd92a.tar.gz vdr-plugin-streamdev-87e24499e3857b8cea36d9ec9f38fdb9443fd92a.tar.bz2 |
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.
-rw-r--r-- | libdvbmpeg/ctools.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libdvbmpeg/ctools.c b/libdvbmpeg/ctools.c index dfd1751..76ba48d 100644 --- a/libdvbmpeg/ctools.c +++ b/libdvbmpeg/ctools.c @@ -2025,7 +2025,7 @@ void write_mpg(int fstart, uint64_t length, int fdin, int fdout) fstat (fdout, &sb); 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); @@ -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; @@ -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; @@ -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 in_addr haddr; int found_ip = 1; |