shithub: scc

Download patch

ref: c9ae3648600c236f10840680f475fd58cd324618
parent: ed6c62e1aaa3d627ffceb0008d1f783600257cbb
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Feb 13 09:19:11 EST 2018

[ar] Move usage() near of main()

This is the style used in other commands of the toolchain.

--- a/ar/main.c
+++ b/ar/main.c
@@ -39,13 +39,6 @@
 	exit(1);
 }
 
-static void
-usage(void)
-{
-	fputs("ar [-drqtpmx][posname] [-vuaibcl] [posname] afile name ...\n", stderr);
-	exit(1);
-}
-
 static FILE *
 openar(char *afile)
 {
@@ -372,6 +365,13 @@
 	fputs(ARMAG, tmp);
 
 	return tmp;
+}
+
+static void
+usage(void)
+{
+	fputs("ar [-drqtpmx][posname] [-vuaibcl] [posname] afile name ...\n", stderr);
+	exit(1);
 }
 
 int