src: gnss: fix build on 32-bit architectures

It seems `off_t` is now 64-bits wide on 32-bit architectures, so using
`glong` causes a build failure in this case. Switch to using the correct
type from the `sendfile()` prototype to fix this.
This commit is contained in:
Arnaud Ferraris
2024-08-27 10:16:07 +02:00
parent 012c09e630
commit 1acd15ca2f

View File

@@ -327,7 +327,7 @@ static void init_assistance_data_upload(struct EG25Manager *manager)
static void upload_assistance_data(struct EG25Manager *manager) static void upload_assistance_data(struct EG25Manager *manager)
{ {
gint error; gint error;
glong written_total = 0; off_t written_total = 0;
gint ret; gint ret;
struct stat sb; struct stat sb;