summaryrefslogtreecommitdiffstats
path: root/bin/ed/undo.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-02 06:36:49 +0000
committerimp <imp@FreeBSD.org>2002-02-02 06:36:49 +0000
commit3fc8df52e3856eeac730574d5ae122806dd1e1ef (patch)
tree331e1d7f986e20bcd52361067fc4b66cab14b048 /bin/ed/undo.c
parent5203a0a465a65bd5e6e40b6364bb0dbe05feb7cf (diff)
downloadFreeBSD-src-3fc8df52e3856eeac730574d5ae122806dd1e1ef.zip
FreeBSD-src-3fc8df52e3856eeac730574d5ae122806dd1e1ef.tar.gz
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code Approved by: arch@, new style(9)
Diffstat (limited to 'bin/ed/undo.c')
-rw-r--r--bin/ed/undo.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/ed/undo.c b/bin/ed/undo.c
index 8feb381..73d488c 100644
--- a/bin/ed/undo.c
+++ b/bin/ed/undo.c
@@ -40,10 +40,7 @@ long u_p = 0; /* undo stack pointer */
/* push_undo_stack: return pointer to initialized undo node */
undo_t *
-push_undo_stack(type, from, to)
- int type;
- long from;
- long to;
+push_undo_stack(int type, long from, long to)
{
undo_t *t;
@@ -87,7 +84,7 @@ long u_addr_last = -1; /* if >= 0, undo enabled */
/* pop_undo_stack: undo last change to the editor buffer */
int
-pop_undo_stack()
+pop_undo_stack(void)
{
long n;
long o_current_addr = current_addr;
@@ -136,7 +133,7 @@ pop_undo_stack()
/* clear_undo_stack: clear the undo stack */
void
-clear_undo_stack()
+clear_undo_stack(void)
{
line_t *lp, *ep, *tl;
OpenPOWER on IntegriCloud