From 14c09aef1ce4ac4e627f8d62e1c82e475844ded9 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 16 Feb 2014 20:46:58 +0400 Subject: [PATCH] cord: Change no-argument functions declaration style to ANSI C * cord/cordbscs.c (CORD_init_min_len): Use ANSI C style of no-argument function prototype. * cord/tests/de.c (prune_map, normalize_display, fix_pos): Likewise. --- cord/cordbscs.c | 2 +- cord/tests/de.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cord/cordbscs.c b/cord/cordbscs.c index a05e6e0..5653672 100644 --- a/cord/cordbscs.c +++ b/cord/cordbscs.c @@ -598,7 +598,7 @@ typedef ForestElement Forest [ MAX_DEPTH ]; /* of the forest in order of DECREASING */ /* indices. */ -void CORD_init_min_len() +void CORD_init_min_len(void) { register int i; register size_t last, previous, current; diff --git a/cord/tests/de.c b/cord/tests/de.c index 068848c..ee01e3f 100644 --- a/cord/tests/de.c +++ b/cord/tests/de.c @@ -116,7 +116,7 @@ void invalidate_map(int i) /* Reduce the number of map entries to save space for huge files. */ /* This also affects maps in histories. */ -void prune_map() +void prune_map(void) { line_map map = current_map; int start_line = map -> line; @@ -290,7 +290,7 @@ int dis_granularity; /* Update dis_line, dis_col, and dis_pos to make cursor visible. */ /* Assumes line, col, dis_line, dis_pos are in bounds. */ -void normalize_display() +void normalize_display(void) { int old_line = dis_line; int old_col = dis_col; @@ -328,7 +328,7 @@ void fix_cursor(void) /* Make sure line, col, and dis_pos are somewhere inside file. */ /* Recompute file_pos. Assumes dis_pos is accurate or past eof */ -void fix_pos() +void fix_pos(void) { int my_col = col; -- 2.7.4