summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-at
blob: 8cbb550cc05f9e4781978f7c214b66811a946539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-at,v 1.2 1999/08/22 22:55:46 kim Exp $

--- more.c.orig	Wed Jul 15 14:18:32 1998
+++ more.c	Sun Aug 22 18:11:22 1999
@@ -358,8 +358,8 @@
     register FILE *art;
     int more_cmd, eof, skip_spaces, has_space, window_lines;
     int form_feed, last_ff_line, ignore_nl = 0;
-    off_t lineposbuf[LINEMAX];
-    off_t *linepos = lineposbuf;
+    long lineposbuf[LINEMAX];
+    long *linepos = lineposbuf;
     int linemax = LINEMAX;
     char linebuf[200], skip_char;
     int skip_wrap;
@@ -368,7 +368,7 @@
     struct digest_header digest_save;
     int linenum, maxline, topline, print_lines, lno1;
     int scroll_lines, scroll_from;
-    off_t scroll_offset;
+    long scroll_offset;
     int underline_line, fake_underline;
     int match_lines, match_redraw, match_topline = 0, match_botline;
     int goto_line, prev_goto, stop_line, extra_lines;
@@ -655,11 +655,11 @@
     if (linenum == linemax) {
 	linemax += 500;
 	if (linepos == lineposbuf) {
-	    linepos = newobj(off_t, linemax);
+	    linepos = newobj(long, linemax);
 	    for (linenum = 0; linenum < LINEMAX; linenum++)
 		linepos[linenum] = lineposbuf[linenum];
 	} else
-	    linepos = resizeobj(linepos, off_t, linemax);
+	    linepos = resizeobj(linepos, long, linemax);
     }
 
     if (goto_line == linenum) {