From 96fa1b7327b35cdeca6c77f2fdde906cabc437d8 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 20:30:30 +0200 Subject: Replace custom int64 with its standardized int64_t type --- ot_mutex.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ot_mutex.c') diff --git a/ot_mutex.c b/ot_mutex.c index affec6b..2a8cbf5 100644 --- a/ot_mutex.c +++ b/ot_mutex.c @@ -62,7 +62,7 @@ size_t mutex_get_torrent_count(void) { return g_torrent_count; } struct ot_task { ot_taskid taskid; ot_tasktype tasktype; - int64 sock; + int64_t sock; size_t iovec_entries; struct iovec *iovec; struct ot_task *next; @@ -73,7 +73,7 @@ static struct ot_task *tasklist; static pthread_mutex_t tasklist_mutex; static pthread_cond_t tasklist_being_filled; -int mutex_workqueue_pushtask(int64 sock, ot_tasktype tasktype) { +int mutex_workqueue_pushtask(int64_t sock, ot_tasktype tasktype) { struct ot_task **tmptask, *task; task = malloc(sizeof(struct ot_task)); @@ -102,7 +102,7 @@ int mutex_workqueue_pushtask(int64 sock, ot_tasktype tasktype) { return 0; } -void mutex_workqueue_canceltask(int64 sock) { +void mutex_workqueue_canceltask(int64_t sock) { struct ot_task **task; /* Want exclusive access to tasklist */ @@ -227,9 +227,9 @@ int mutex_workqueue_pushchunked(ot_taskid taskid, struct iovec *iovec) { return task ? 0 : -1; } -int64 mutex_workqueue_popresult(size_t *iovec_entries, struct iovec **iovec, int *is_partial) { +int64_t mutex_workqueue_popresult(size_t *iovec_entries, struct iovec **iovec, int *is_partial) { struct ot_task **task; - int64 sock = -1; + int64_t sock = -1; *is_partial = 0; -- cgit v1.3