various off_t fixes

This commit is contained in:
deraadt 1994-04-24 20:19:17 +00:00
parent 4193c502e4
commit 907eea9f85
3 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)forward.c 5.4 (Berkeley) 2/12/92";*/
static char rcsid[] = "$Id: forward.c,v 1.3 1994/03/28 02:22:29 cgd Exp $";
static char rcsid[] = "$Id: forward.c,v 1.4 1994/04/24 20:19:17 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -178,7 +178,7 @@ rlines(fp, off, sbp)
long off;
struct stat *sbp;
{
register off_t size;
register int size;
register char *p;
if (!(size = sbp->st_size))

View File

@ -36,7 +36,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)reverse.c 5.3 (Berkeley) 2/12/92";*/
static char rcsid[] = "$Id: reverse.c,v 1.3 1994/03/28 02:22:35 cgd Exp $";
static char rcsid[] = "$Id: reverse.c,v 1.4 1994/04/24 20:19:18 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -106,7 +106,7 @@ r_reg(fp, style, off, sbp)
long off;
struct stat *sbp;
{
register off_t size;
register int size;
register int llen;
register char *p;
int fd;

View File

@ -42,7 +42,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)tail.c 5.7 (Berkeley) 2/12/92";*/
static char rcsid[] = "$Id: tail.c,v 1.2 1993/08/01 18:08:01 mycroft Exp $";
static char rcsid[] = "$Id: tail.c,v 1.3 1994/04/24 20:19:19 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -171,7 +171,7 @@ main(argc, argv)
* Determine if input is a pipe. 4.4BSD will set the SOCKET
* bit in the st_mode field for pipes. Fix this then.
*/
if (lseek(fileno(fp), 0L, SEEK_CUR) == -1 && errno == ESPIPE) {
if (lseek(fileno(fp), 0, SEEK_CUR) == -1 && errno == ESPIPE) {
errno = 0;
fflag = 0; /* POSIX.2 requires this. */
}