Petri Hintukainen pushed to branch master at VideoLAN / libaacs
Commits:
a2ef3313 by npzacs at 2021-01-17T17:43:59+02:00
devtools: avoid off_t
- - - - -
d7920138 by npzacs at 2021-01-18T17:34:27+02:00
Silence warning
- - - - -
2 changed files:
- src/devtools/read_file.h
- src/file/mmc_device_linux.c
Changes:
=====================================
src/devtools/read_file.h
=====================================
@@ -21,11 +21,11 @@
#include <stdlib.h>
#include <errno.h>
-static size_t _read_file(const char *name, off_t min_size, off_t max_size,
uint8_t **pdata)
+static size_t _read_file(const char *name, long min_size, long max_size,
uint8_t **pdata)
{
FILE *f;
uint8_t *data = NULL;
- off_t file_size;
+ long file_size;
size_t size;
f = fopen(name, "rb");
=====================================
src/file/mmc_device_linux.c
=====================================
@@ -105,6 +105,7 @@ int device_send_cmd(MMCDEV *dev, const uint8_t *cmd,
uint8_t *buf, size_t tx, si
BD_DEBUG(DBG_MMC, " Send failed! [%d] %s\n", result, strerror(errno));
#else
#warning no MMC drive support
+ (void)dev; (void)cmd; (void)buf; (void)tx; (void)rx;
BD_DEBUG(DBG_MMC | DBG_CRIT, "No MMC drive support\n");
#endif
View it on GitLab:
https://code.videolan.org/videolan/libaacs/-/compare/128af579f4ea4168e70e93f400a7695f0f61d045...d7920138a4bddc66fbe1f173cd48d2ffa299adc1
--
View it on GitLab:
https://code.videolan.org/videolan/libaacs/-/compare/128af579f4ea4168e70e93f400a7695f0f61d045...d7920138a4bddc66fbe1f173cd48d2ffa299adc1
You're receiving this email because of your account on code.videolan.org.
_______________________________________________
libaacs-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libaacs-devel