date and time created 83/02/20 23:36:57 by sam
[unix-history] / usr / src / sys / kern / vfs_xxx.c
index f2b23d0..21b271f 100644 (file)
@@ -1,4 +1,4 @@
-/*     vfs_xxx.c       4.2     82/12/23        */
+/*     vfs_xxx.c       4.4     82/12/28        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -46,7 +46,7 @@ uchar()
  */
 struct ostat {
        dev_t   ost_dev;
  */
 struct ostat {
        dev_t   ost_dev;
-       u_int   ost_ino;
+       u_short ost_ino;
        u_short ost_mode;
        short   ost_nlink;
        short   ost_uid;
        u_short ost_mode;
        short   ost_nlink;
        short   ost_uid;
@@ -122,7 +122,6 @@ ostat1(ip, ub)
        ds.ost_atime = (int)ip->i_atime;
        ds.ost_mtime = (int)ip->i_mtime;
        ds.ost_ctime = (int)ip->i_ctime;
        ds.ost_atime = (int)ip->i_atime;
        ds.ost_mtime = (int)ip->i_mtime;
        ds.ost_ctime = (int)ip->i_ctime;
-       if (copyout((caddr_t)&ds, (caddr_t)ub, sizeof(ds)) < 0)
-               u.u_error = EFAULT;
+       u.u_error = copyout((caddr_t)&ds, (caddr_t)ub, sizeof(ds));
 }
 #endif
 }
 #endif