removed unused variable
[reactos.git] / posix / lib / psxdll / fcntl / fcntl.c
index 4ae8548..2404587 100644 (file)
@@ -1,8 +1,8 @@
-/* $Id: fcntl.c,v 1.1 2002/02/20 07:06:50 hyperion Exp $
+/* $Id: fcntl.c,v 1.4 2002/03/21 22:41:53 hyperion Exp $
  */
 /*
  * COPYRIGHT:   See COPYING in the top level directory
  */
 /*
  * COPYRIGHT:   See COPYING in the top level directory
- * PROJECT:     ReactOS system libraries
+ * PROJECT:     ReactOS POSIX+ Subsystem
  * FILE:        subsys/psx/lib/psxdll/fcntl/fcntl.c
  * PURPOSE:     File control
  * PROGRAMMER:  KJK::Hyperion <noog@libero.it>
  * FILE:        subsys/psx/lib/psxdll/fcntl/fcntl.c
  * PURPOSE:     File control
  * PROGRAMMER:  KJK::Hyperion <noog@libero.it>
@@ -15,6 +15,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <string.h>
 #include <stdarg.h>
 #include <psx/errno.h>
 #include <psx/stdlib.h>
 #include <stdarg.h>
 #include <psx/errno.h>
 #include <psx/stdlib.h>
@@ -36,7 +37,7 @@ int fcntl(int fildes, int cmd, ...)
  __PdxAcquirePdataLock();
 
  /* get the file descriptors table */
  __PdxAcquirePdataLock();
 
  /* get the file descriptors table */
- pftFdTable = __PdxGetProcessData()->FdTable;
+ pftFdTable = &__PdxGetProcessData()->FdTable;
 
  /* fildes is an invalid, closed or uninitialized descriptor */
  if
 
  /* fildes is an invalid, closed or uninitialized descriptor */
  if
@@ -72,7 +73,6 @@ int fcntl(int fildes, int cmd, ...)
  {
   case F_DUPFD:
   {
  {
   case F_DUPFD:
   {
-   va_list     vlArgs;
    int         nDupFileNo;
    __fildes_t *pfdDupDescriptor;
 
    int         nDupFileNo;
    __fildes_t *pfdDupDescriptor;