From bc8eb7adf2c2f04fdc262ee370feda9e0d8781c3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 30 Sep 2011 20:19:44 -0700 Subject: File descriptors should be stored in ints not shorts All OS routines take and return ints for file descriptors, so stop converting back and forth to shorts. Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston --- fd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fd.h') diff --git a/fd.h b/fd.h index 605375a..005e62d 100644 --- a/fd.h +++ b/fd.h @@ -78,14 +78,14 @@ struct FDDescriptor }; extern struct FDDescriptor *FDD /* array of FD descriptors */ ; -extern short MaxFD /* maximum number of FD's possible */ ; +extern int MaxFD /* maximum number of FD's possible */ ; -extern short nFDsInUse /* number of FD's actually in use */ ; +extern int nFDsInUse /* number of FD's actually in use */ ; extern fd_set ReadDescriptors /* bit map of FD's in use -- for select */ ; extern fd_set WriteDescriptors /* bit map of write blocked FD's -- for select */; extern fd_set BlockedReadDescriptors /* bit map of FD's blocked from reading */; -extern short HighestFD /* highest FD in use -- for select */ ; +extern int HighestFD /* highest FD in use -- for select */ ; extern void InitializeFD(void); extern void UsingFD(FD fd, void (*Handler)(int), void (*FlushHandler)(int), -- cgit v1.2.1