Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/mlxctl Nits.
details: https://anonhg.NetBSD.org/src/rev/d18c8432a934
branches: trunk
changeset: 508672:d18c8432a934
user: ad <ad%NetBSD.org@localhost>
date: Tue Apr 17 13:32:39 2001 +0000
description:
Nits.
diffstat:
usr.sbin/mlxctl/cmds.c | 8 ++++----
usr.sbin/mlxctl/dklist.c | 8 ++++----
usr.sbin/mlxctl/main.c | 5 ++---
usr.sbin/mlxctl/util.c | 9 ++++-----
4 files changed, 14 insertions(+), 16 deletions(-)
diffs (129 lines):
diff -r 29ba24f9e013 -r d18c8432a934 usr.sbin/mlxctl/cmds.c
--- a/usr.sbin/mlxctl/cmds.c Tue Apr 17 13:31:00 2001 +0000
+++ b/usr.sbin/mlxctl/cmds.c Tue Apr 17 13:32:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.3 2001/02/15 02:32:26 simonb Exp $ */
+/* $NetBSD: cmds.c,v 1.4 2001/04/17 13:32:39 ad Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
#ifndef lint
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cmds.c,v 1.3 2001/02/15 02:32:26 simonb Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.4 2001/04/17 13:32:39 ad Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -363,11 +363,11 @@
if (argv[0] == NULL || argv[1] != NULL)
usage();
- rb.rr_channel = strtol(*argv, &p, 0);
+ rb.rr_channel = (int)strtol(*argv, &p, 0);
if (p[0] != ':' || p[1] == '\0')
usage();
- rb.rr_target = strtol(*argv, &p, 0);
+ rb.rr_target = (int)strtol(*argv, &p, 0);
if (p[0] != '\0')
usage();
diff -r 29ba24f9e013 -r d18c8432a934 usr.sbin/mlxctl/dklist.c
--- a/usr.sbin/mlxctl/dklist.c Tue Apr 17 13:31:00 2001 +0000
+++ b/usr.sbin/mlxctl/dklist.c Tue Apr 17 13:32:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dklist.c,v 1.1 2001/02/04 17:30:37 ad Exp $ */
+/* $NetBSD: dklist.c,v 1.2 2001/04/17 13:32:39 ad Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
#ifndef lint
#include <sys/cdefs.h>
-__RCSID("$NetBSD: dklist.c,v 1.1 2001/02/04 17:30:37 ad Exp $");
+__RCSID("$NetBSD: dklist.c,v 1.2 2001/04/17 13:32:39 ad Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -96,9 +96,9 @@
static SIMPLEQ_HEAD(, mlx_disk) mlx_disks;
static struct nlist namelist[] = {
-#define X_DISK_COUNT 4
+#define X_DISK_COUNT 0
{ "_disk_count" }, /* number of disks */
-#define X_DISKLIST 5
+#define X_DISKLIST 1
{ "_disklist" }, /* TAILQ of disks */
{ NULL },
};
diff -r 29ba24f9e013 -r d18c8432a934 usr.sbin/mlxctl/main.c
--- a/usr.sbin/mlxctl/main.c Tue Apr 17 13:31:00 2001 +0000
+++ b/usr.sbin/mlxctl/main.c Tue Apr 17 13:32:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.2 2001/02/20 23:57:03 cgd Exp $ */
+/* $NetBSD: main.c,v 1.3 2001/04/17 13:32:39 ad Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#ifndef lint
#include <sys/cdefs.h>
-__RCSID("$NetBSD: main.c,v 1.2 2001/02/20 23:57:03 cgd Exp $");
+__RCSID("$NetBSD: main.c,v 1.3 2001/04/17 13:32:39 ad Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -55,7 +55,6 @@
#include <string.h>
#include <ctype.h>
#include <unistd.h>
-#include <getopt.h>
#include "extern.h"
diff -r 29ba24f9e013 -r d18c8432a934 usr.sbin/mlxctl/util.c
--- a/usr.sbin/mlxctl/util.c Tue Apr 17 13:31:00 2001 +0000
+++ b/usr.sbin/mlxctl/util.c Tue Apr 17 13:32:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.2 2001/02/09 01:31:52 enami Exp $ */
+/* $NetBSD: util.c,v 1.3 2001/04/17 13:32:40 ad Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
#ifndef lint
#include <sys/cdefs.h>
-__RCSID("$NetBSD: util.c,v 1.2 2001/02/09 01:31:52 enami Exp $");
+__RCSID("$NetBSD: util.c,v 1.3 2001/04/17 13:32:40 ad Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -214,7 +214,7 @@
{
char *type, *device, *vendor, *revision;
- switch(pd->pd_flags2 & 0x03) {
+ switch (pd->pd_flags2 & 0x03) {
case MLX_PHYS_DRV_DISK:
type = "disk";
break;
@@ -235,7 +235,7 @@
printf("%s%s%02d%02d ", prefix, type, chn, targ);
- switch(pd->pd_status) {
+ switch (pd->pd_status) {
case MLX_PHYS_DRV_DEAD:
printf(" (dead) ");
break;
@@ -285,4 +285,3 @@
printf("\n");
}
-
Home |
Main Index |
Thread Index |
Old Index