diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-04-17 22:05:03 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-04-17 22:05:03 -0700 |
commit | 7f08a1e19b49c9ffdc62e1dff340b392ac7c42d1 (patch) | |
tree | f333c5bf84b4343d6fb20f28a6736b5708d5784d /src/solx_devfs.c | |
parent | 0edb2392ede59cadd75915873b52baa188bfa273 (diff) |
Fix unused variable warnings in Solaris code
solx_devfs.c: In function `find_target_node':
solx_devfs.c:672: warning: unused variable `prop'
solx_devfs.c:673: warning: unused variable `i'
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'src/solx_devfs.c')
-rw-r--r-- | src/solx_devfs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/solx_devfs.c b/src/solx_devfs.c index b56819c..cf430d0 100644 --- a/src/solx_devfs.c +++ b/src/solx_devfs.c @@ -668,18 +668,17 @@ find_target_node(di_node_t node, void *arg) int *regbuf = NULL; int len = 0; uint32_t busno, funcno, devno; - i_devnode_t *devnode; - void *prop = DI_PROP_NIL; - int i; - - devnode = (i_devnode_t *)arg; + i_devnode_t *devnode = (i_devnode_t *)arg; /* * Test the property functions, only for testing */ /* + void *prop = DI_PROP_NIL; + (void) fprintf(stderr, "start of node 0x%x\n", node->nodeid); while ((prop = di_prop_hw_next(node, prop)) != DI_PROP_NIL) { + int i; (void) fprintf(stderr, "name=%s: ", di_prop_name(prop)); len = 0; if (!strcmp(di_prop_name(prop), "reg")) { |