From bfef6800268cdcf0b9118d89f1ce7c3541bd0309 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Thu, 12 Nov 2026 22:28:39 +0100 Subject: Stop forcing 64 bit variables on 32 bit targets where a long would do just fine --- src/ot_fdstate.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ot_fdstate.h') diff --git a/src/ot_fdstate.h b/src/ot_fdstate.h index 60fe070..20f469d 100644 --- a/src/ot_fdstate.h +++ b/src/ot_fdstate.h @@ -27,7 +27,7 @@ size_t fdstate_slots(void); /* Take a freshly accepted descriptor into the table and return the generation to quote when asking for it back. expiry of 0 never expires. */ -uint32_t fdstate_open(int fd, void *cookie, ot_time expiry); +uint32_t fdstate_open(int fd, void *cookie, unsigned long expiry); /* Which generation a descriptor currently carries, to check an event that was handed out earlier against the connection living there now. */ @@ -40,7 +40,7 @@ void fdstate_release(int fd); /* The cleaner's side of the same thing: takes the descriptor only if nobody is working on it and it really has expired. Never waits. */ -int fdstate_claim_expired(int fd, ot_time now); +int fdstate_claim_expired(int fd, unsigned long now); /* Give the descriptor up. The generation is bumped here, which has to happen before close(2) so that the kernel cannot reissue the number while events @@ -50,13 +50,13 @@ void fdstate_close(int fd); /* Walks the table for descriptors that have expired, handing back one at a time until it returns -1. The cursor belongs to the caller, so several sweepers can run without sharing anything. */ -int fdstate_next_expired(ot_time now, int *cursor); +int fdstate_next_expired(unsigned long now, int *cursor); /* Both only valid while the caller holds the descriptor. */ void *fdstate_cookie(int fd); /* Hand the slot a different cookie, for a connection whose state has moved */ void fdstate_set_cookie(int fd, void *cookie); -void fdstate_set_expiry(int fd, ot_time expiry); +void fdstate_set_expiry(int fd, unsigned long expiry); #endif -- cgit v1.3