summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-08-10 15:21:42 +0300
committerDan McDonald <danmcd@joyent.com>2017-11-16 10:42:48 -0500
commit0803869a9bc0aff1c81287ac6eae15943cbba545 (patch)
tree85f2e66730a855a524b202ee2350ef29d18fd7f8
parent62a14a75a4b2740af69a083f5ae385596db7ffc8 (diff)
downloadillumos-joyent-0803869a9bc0aff1c81287ac6eae15943cbba545.tar.gz
8766 pcitool: typedef locally defined but not used
Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Jason King <jason.king@joyent.com> Reviewed by: Yuri Pankov <yuripv@gmx.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/pcitool/pcitool_ui.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/usr/src/cmd/pcitool/pcitool_ui.c b/usr/src/cmd/pcitool/pcitool_ui.c
index b3c2888b46..ddeccea4bf 100644
--- a/usr/src/cmd/pcitool/pcitool_ui.c
+++ b/usr/src/cmd/pcitool/pcitool_ui.c
@@ -898,10 +898,10 @@ static int
parse_nexus_opts(char *input, uint64_t *flags_arg, uint8_t *bank_arg,
uint64_t *base_addr_arg)
{
- typedef enum {
+ enum nexus_opts_index {
bank = 0,
base
- } nexus_opts_index_t;
+ };
static char *nexus_opts[] = {
"bank",
@@ -1059,7 +1059,7 @@ parse_device_opts(
uint8_t *func_arg, uint8_t *bank_arg)
{
/* Needed by getsubopt(3C) */
- typedef enum {
+ enum bdf_opts_index {
bus = 0,
dev = 1,
func = 2,
@@ -1073,7 +1073,7 @@ parse_device_opts(
bar4 = 10,
bar5 = 11,
rom = 12
- } bdf_opts_index_t;
+ };
/* Needed by getsubopt(3C) */
static char *bdf_opts[] = {
@@ -1436,12 +1436,12 @@ parse_probeone_opts(
char *input, uint64_t *flags_arg, uint8_t *bus_arg, uint8_t *device_arg,
uint8_t *func_arg)
{
- typedef enum {
+ enum p1_bdf_opts_index {
bus = 0,
dev = 1,
func = 2,
bdf = 3
- } p1_bdf_opts_index_t;
+ };
/* Needed by getsubopt(3C) */
static char *p1_bdf_opts[] = {
@@ -1515,7 +1515,8 @@ parse_probeone_opts(
#ifdef DEBUG
static void
-dump_struct(pcitool_uiargs_t *dumpthis) {
+dump_struct(pcitool_uiargs_t *dumpthis)
+{
(void) printf("flags:0x%x\n", dumpthis->flags);
(void) printf("bus:%d (0x%x)\n",
dumpthis->bus, dumpthis->bus);