cord: Change no-argument functions declaration style to ANSI C
authorIvan Maidanski <ivmai@mail.ru>
Sun, 16 Feb 2014 16:46:58 +0000 (20:46 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 16 Feb 2014 16:46:58 +0000 (20:46 +0400)
* 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
cord/tests/de.c

index a05e6e0..5653672 100644 (file)
@@ -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;
index 068848c..ee01e3f 100644 (file)
@@ -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;