diff lib-src/sorted-doc.c @ 169:15872534500d r20-3b11

Import from CVS: tag r20-3b11
author cvs
date Mon, 13 Aug 2007 09:46:53 +0200
parents 376386a54a3c
children 336b97f03633
line wrap: on
line diff
--- a/lib-src/sorted-doc.c	Mon Aug 13 09:45:48 2007 +0200
+++ b/lib-src/sorted-doc.c	Mon Aug 13 09:46:53 2007 +0200
@@ -53,8 +53,7 @@
 /* Print error message.  `s1' is printf control string, `s2' is arg for it. */
 
 static void
-error (s1, s2)
-     char *s1, *s2;
+error (char *s1, char *s2)
 {
   fprintf (stderr, "sorted-doc: ");
   fprintf (stderr, s1, s2);
@@ -64,8 +63,7 @@
 /* Print error message and exit.  */
 
 static void
-fatal (s1, s2)
-     char *s1, *s2;
+fatal (char *s1, char *s2)
 {
   error (s1, s2);
   exit (1);
@@ -74,8 +72,7 @@
 /* Like malloc but get fatal error if memory is exhausted.  */
 
 static void *
-xmalloc (size)
-     int size;
+xmalloc (int size)
 {
   char *result = malloc ((unsigned)size);
   if (result == NULL)
@@ -113,7 +110,7 @@
 };
     
 int
-main ()
+main (int argc, char *argv[])
 {
   register DOCSTR *dp = NULL;	/* allocated DOCSTR */
   register LINE *lp = NULL;	/* allocated line */