offset_t -> off_t
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 22 Jul 1988 10:02:12 +0000 (02:02 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 22 Jul 1988 10:02:12 +0000 (02:02 -0800)
SCCS-vsn: usr.bin/more/main.c 5.2
SCCS-vsn: usr.bin/more/ch.c 5.2

usr/src/usr.bin/more/ch.c
usr/src/usr.bin/more/main.c

index 6760531..9eef674 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)ch.c       5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)ch.c       5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -382,7 +382,7 @@ ch_length()
 {
        if (ispipe)
                return (ch_fsize);
 {
        if (ispipe)
                return (ch_fsize);
-       return ((POSITION)(lseek(file, (offset_t)0, 2)));
+       return ((POSITION)(lseek(file, (off_t)0, L_XTND)));
 }
 
 /*
 }
 
 /*
index 9c0b247..9cb4a3d 100644 (file)
@@ -27,7 +27,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -283,7 +283,7 @@ loop:
                break;
        case 'A': case 'a':
                logfile = open(namelogfile, 1);
                break;
        case 'A': case 'a':
                logfile = open(namelogfile, 1);
-               if (lseek(logfile, (offset_t)0, 2) < 0)
+               if (lseek(logfile, (off_t)0, L_XTND) < 0)
                {
                        close(logfile);
                        logfile = -1;
                {
                        close(logfile);
                        logfile = -1;