summaryrefslogtreecommitdiffstats
path: root/stream/cookies.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-18 20:46:12 +0100
committerwm4 <wm4@nowhere>2012-11-20 18:00:15 +0100
commitddffcce67810fbde5508a353f85760da7a1b4a95 (patch)
tree74d9b416568c12759a0c198651bce0e78a0c2284 /stream/cookies.c
parent51dac4e0702e361b88e5a373fbb0165f5ad47420 (diff)
downloadmpv-ddffcce67810fbde5508a353f85760da7a1b4a95.tar.bz2
mpv-ddffcce67810fbde5508a353f85760da7a1b4a95.tar.xz
stream, demux: replace off_t with int64_t
On reasonable systems, these types were the same anyway. Even on unreasonable systems (seriously, which?), this may reduce potential breakage.
Diffstat (limited to 'stream/cookies.c')
-rw-r--r--stream/cookies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/cookies.c b/stream/cookies.c
index 62025b157b..78a18284af 100644
--- a/stream/cookies.c
+++ b/stream/cookies.c
@@ -110,7 +110,7 @@ static int parse_line(char **ptr, char *cols[6])
}
/* Loads a file into RAM */
-static char *load_file(const char *filename, off_t * length)
+static char *load_file(const char *filename, int64_t * length)
{
int fd = -1;
char *buffer = NULL;
@@ -163,7 +163,7 @@ static struct cookie_list_type *load_cookies_from(const char *filename,
*list)
{
char *ptr;
- off_t length;
+ int64_t length;
ptr = load_file(filename, &length);
if (!ptr)