blob: 6df11eed3fd01e95aeb7fc4dbd805aec56a848db (
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
|
$NetBSD: patch-src_undo_c,v 1.1 2012/05/10 20:53:30 dholland Exp $
- don't use implicit int
- return values from non-void functions on unreachable paths
--- src/undo.c~ 2012-05-10 19:25:36.000000000 +0000
+++ src/undo.c
@@ -263,7 +263,7 @@ int f,n; /* prefix flag and argument */
return(wpopup(ulistp));
}
-PASCAL NEAR undolist()
+int PASCAL NEAR undolist()
{
register char *cp1; /* scanning pointer into line to build */
@@ -448,6 +448,8 @@ nextbuf: bp = getoldb();
lp->next = (UNDO_OBJ *)NULL;
bp->undo_count--;
}
+ /* notreached */
+ return NULL;
}
/* RE-ROOM: Allocate memory using realloc()
@@ -511,5 +513,7 @@ nxtbuf: bp = getoldb();
lp->next = (UNDO_OBJ *)NULL;
bp->undo_count--;
}
+ /* notreached */
+ return NULL;
}
|