Module Name:    src
Committed By:   wiz
Date:           Wed Jan  6 23:03:14 UTC 2016

Modified Files:
        src/sbin/dkctl: dkctl.c

Log Message:
Sort command list in usage.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sbin/dkctl/dkctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/dkctl/dkctl.c
diff -u src/sbin/dkctl/dkctl.c:1.22 src/sbin/dkctl/dkctl.c:1.23
--- src/sbin/dkctl/dkctl.c:1.22	Sun Nov 23 15:43:49 2014
+++ src/sbin/dkctl/dkctl.c	Wed Jan  6 23:03:13 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: dkctl.c,v 1.22 2014/11/23 15:43:49 christos Exp $	*/
+/*	$NetBSD: dkctl.c,v 1.23 2016/01/06 23:03:13 wiz Exp $	*/
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: dkctl.c,v 1.22 2014/11/23 15:43:49 christos Exp $");
+__RCSID("$NetBSD: dkctl.c,v 1.23 2016/01/06 23:03:13 wiz Exp $");
 #endif
 
 #include <sys/param.h>
@@ -104,24 +104,9 @@ static void	disk_makewedges(int, char *[
 static void	disk_strategy(int, char *[]);
 
 static struct command commands[] = {
-	{ "getcache",
-	  "",
-	  disk_getcache,
-	  O_RDONLY },
-
-	{ "setcache",
-	  "none | r | w | rw [save]",
-	  disk_setcache,
-	  O_RDWR },
-
-	{ "synccache",
-	  "[force]",
-	  disk_synccache,
-	  O_RDWR },
-
-	{ "keeplabel",
-	  YESNO_ARG,
-	  disk_keeplabel,
+	{ "addwedge",
+	  "name startblk blkcnt ptype",
+	  disk_addwedge,
 	  O_RDWR },
 
 	{ "badsector",
@@ -129,21 +114,26 @@ static struct command commands[] = {
 	   disk_badsectors,
 	   O_RDWR },
 
-	{ "addwedge",
-	  "name startblk blkcnt ptype",
-	  disk_addwedge,
-	  O_RDWR },
-
 	{ "delwedge",
 	  "dk",
 	  disk_delwedge,
 	  O_RDWR },
 
+	{ "getcache",
+	  "",
+	  disk_getcache,
+	  O_RDONLY },
+
 	{ "getwedgeinfo",
 	  "",
 	  disk_getwedgeinfo,
 	  O_RDONLY },
 
+	{ "keeplabel",
+	  YESNO_ARG,
+	  disk_keeplabel,
+	  O_RDWR },
+
 	{ "listwedges",
 	  "",
 	  disk_listwedges,
@@ -154,11 +144,21 @@ static struct command commands[] = {
 	  disk_makewedges,
 	  O_RDWR },
 
+	{ "setcache",
+	  "none | r | w | rw [save]",
+	  disk_setcache,
+	  O_RDWR },
+
 	{ "strategy",
 	  "[name]",
 	  disk_strategy,
 	  O_RDWR },
 
+	{ "synccache",
+	  "[force]",
+	  disk_synccache,
+	  O_RDWR },
+
 	{ NULL,
 	  NULL,
 	  NULL,

Reply via email to