This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / usr.bin / elvisrecover / elvisrecover.c
index a0069a9..e4d7159 100644 (file)
 #include "config.h"
 #include "vi.h"
 
 #include "config.h"
 #include "vi.h"
 
+void recover P_((char *, char *));
+void main P_((int, char **));
+
+
 void recover(basename, outname)
        char    *basename;      /* the name of the file to recover */
        char    *outname;       /* the name of the file to write to */
 void recover(basename, outname)
        char    *basename;      /* the name of the file to recover */
        char    *outname;       /* the name of the file to write to */
@@ -164,6 +168,7 @@ void recover(basename, outname)
 #endif
 }
 
 #endif
 }
 
+void
 main(argc, argv)
        int     argc;
        char    **argv;
 main(argc, argv)
        int     argc;
        char    **argv;
@@ -172,7 +177,7 @@ main(argc, argv)
        if (argc > 3)
        {
                fprintf(stderr, "usage: %s [preserved_file [recovery_file]]\n", argv[0]);
        if (argc > 3)
        {
                fprintf(stderr, "usage: %s [preserved_file [recovery_file]]\n", argv[0]);
-               exit(1);
+               exit(2);
        }
 
        /* recover the requested file, or list recoverable files */
        }
 
        /* recover the requested file, or list recoverable files */