summaryrefslogtreecommitdiff
path: root/sysutils/44bsd-more/files/patch-linenum.c
blob: 5efc8bed1f3855389744dfa10b681a10904d2dd1 (plain) (blame)
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
39
40
41
42
43
44
--- linenum.c.orig	2011-09-08 01:09:35.000000000 +0800
+++ linenum.c	2011-09-08 01:11:21.000000000 +0800
@@ -134,7 +134,7 @@ clr_linenum()
 /*
  * Calculate the gap for an entry.
  */
-static
+static void
 calcgap(p)
 	register struct linenum *p;
 {
@@ -154,6 +154,7 @@ calcgap(p)
  * The specified position (pos) should be the file position of the
  * FIRST character in the specified line.
  */
+void
 add_lnum(line, pos)
 	int line;
 	off_t pos;
@@ -248,7 +249,7 @@ add_lnum(line, pos)
  * If we get stuck in a long loop trying to figure out the
  * line number, print a message to tell the user what we're doing.
  */
-static
+static void
 longloopmessage()
 {
 	ierror("Calculating line numbers");
@@ -264,6 +265,7 @@ longloopmessage()
  * Find the line number associated with a given position.
  * Return 0 if we can't figure it out.
  */
+int
 find_linenum(pos)
 	off_t pos;
 {
@@ -384,6 +386,7 @@ find_linenum(pos)
  * The argument "where" tells which line is to be considered
  * the "current" line (e.g. TOP, BOTTOM, MIDDLE, etc).
  */
+int
 currline(where)
 	int where;
 {