X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Tools%2FNetTest%2Fvfs_shim.c;fp=Tools%2FNetTest%2Fvfs_shim.c;h=d2d1d5fe5c45bb3cf3d0ff71816062edb25c1280;hb=b18d54ac83b9ec53d4e7b4f0a7b4f33f840e2cc0;hp=6d420646fa7e3371829cd259cbd4492f4ec83b4d;hpb=f3bdde1ff0ec3cf20c1371a50eb37a0907fe00c5;p=tpg%2Facess2.git diff --git a/Tools/NetTest/vfs_shim.c b/Tools/NetTest/vfs_shim.c index 6d420646..d2d1d5fe 100644 --- a/Tools/NetTest/vfs_shim.c +++ b/Tools/NetTest/vfs_shim.c @@ -12,7 +12,7 @@ // === CODE === int VFS_AllocHandle(int bIsUser, tVFS_Node *Node, int Mode) { - const int maxfd = *Threads_GetMaxFD(); + const int maxfd = *Threads_GetMaxFD(NULL); tVFS_Handle *handles = *Threads_GetHandlesPtr(); if( !handles ) { handles = calloc( maxfd, sizeof(tVFS_Handle) ); @@ -34,7 +34,7 @@ int VFS_AllocHandle(int bIsUser, tVFS_Node *Node, int Mode) tVFS_Handle *VFS_GetHandle(int FD) { - const int maxfd = *Threads_GetMaxFD(); + const int maxfd = *Threads_GetMaxFD(NULL); tVFS_Handle *handles = *Threads_GetHandlesPtr(); if( !handles ) return NULL; @@ -47,7 +47,7 @@ tVFS_Handle *VFS_GetHandle(int FD) int VFS_SetHandle(int FD, tVFS_Node *Node, int Mode) { - const int maxfd = *Threads_GetMaxFD(); + const int maxfd = *Threads_GetMaxFD(NULL); tVFS_Handle *handles = *Threads_GetHandlesPtr(); if( !handles ) return -1;