summaryrefslogtreecommitdiff
path: root/bin/ed/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ed/undo.c')
-rw-r--r--bin/ed/undo.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/ed/undo.c b/bin/ed/undo.c
index 652e022ffec..a82e0bc8e55 100644
--- a/bin/ed/undo.c
+++ b/bin/ed/undo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: undo.c,v 1.5 2001/01/16 03:04:46 deraadt Exp $ */
+/* $OpenBSD: undo.c,v 1.6 2002/03/24 22:17:04 millert Exp $ */
/* $NetBSD: undo.c,v 1.2 1995/03/21 09:04:52 cgd Exp $ */
/* undo.c: This file contains the undo routines for the ed line editor */
@@ -32,7 +32,7 @@
#if 0
static char *rcsid = "@(#)undo.c,v 1.1 1994/02/01 00:34:44 alm Exp";
#else
-static char rcsid[] = "$OpenBSD: undo.c,v 1.5 2001/01/16 03:04:46 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: undo.c,v 1.6 2002/03/24 22:17:04 millert Exp $";
#endif
#endif /* not lint */
@@ -41,15 +41,15 @@ static char rcsid[] = "$OpenBSD: undo.c,v 1.5 2001/01/16 03:04:46 deraadt Exp $"
#define USIZE 100 /* undo stack size */
undo_t *ustack = NULL; /* undo stack */
-long usize = 0; /* stack size variable */
-long u_p = 0; /* undo stack pointer */
+int usize = 0; /* stack size variable */
+int u_p = 0; /* undo stack pointer */
/* push_undo_stack: return pointer to intialized undo node */
undo_t *
push_undo_stack(type, from, to)
int type;
- long from;
- long to;
+ int from;
+ int to;
{
undo_t *t;
@@ -88,16 +88,16 @@ push_undo_stack(type, from, to)
}
-long u_current_addr = -1; /* if >= 0, undo enabled */
-long u_addr_last = -1; /* if >= 0, undo enabled */
+int u_current_addr = -1; /* if >= 0, undo enabled */
+int u_addr_last = -1; /* if >= 0, undo enabled */
/* pop_undo_stack: undo last change to the editor buffer */
int
pop_undo_stack()
{
- long n;
- long o_current_addr = current_addr;
- long o_addr_last = addr_last;
+ int n;
+ int o_current_addr = current_addr;
+ int o_addr_last = addr_last;
if (u_current_addr == -1 || u_addr_last == -1) {
seterrmsg("nothing to undo");