update for HEAD-2003021201
[reactos.git] / lib / msvcrt / io / utime.c
index 7a5b037..5ec84eb 100644 (file)
@@ -4,36 +4,19 @@
 #include <msvcrt/sys/utime.h>
 #include <msvcrt/internal/file.h>
 
-int _utime(const char* filename, struct _utimbuf* buf)
-{
-  int fn;
-  int ret;
-  
-  fn = _open(filename, _O_RDWR);
-  if (fn == -1)
-    {
-      __set_errno(EBADF);
-      return -1;
-    }
-  ret = _futime(fn,buf);
-  if (_close(fn) < 0)
-    return -1;
-  return ret;
-}
 
-int _wutime(const wchar_t* filename, struct _utimbuf* buf)
+int _utime(const char* filename, struct _utimbuf* buf)
 {
-  int fn;
-  int ret;
+    int fn;
+    int ret;
   
-  fn = _wopen(filename, _O_RDWR);
-  if (fn == -1)
-    {
-      __set_errno(EBADF);
-      return -1;
+    fn = _open(filename, _O_RDWR);
+    if (fn == -1) {
+        __set_errno(EBADF);
+        return -1;
     }
-  ret = _futime(fn,buf);
-  if (_close(fn) < 0)
-    return -1;
-  return ret;
+    ret = _futime(fn, buf);
+    if (_close(fn) < 0)
+        return -1;
+    return ret;
 }