]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
Add mstvpd to default target.
authorMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 22 Jan 2007 19:12:33 +0000 (21:12 +0200)
committerMichael S. Tsirkin <mst@mellanox.co.il>
Mon, 22 Jan 2007 19:12:33 +0000 (21:12 +0200)
Make build -Wall clean.

Makefile
vpd.c

index 1e39343654557721568028896f62e06720c39ee8..87dcbdd76603024364d4deb6f7789a2c66810035 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ EXTRA_LOADLIBES=-lz
 LOADLIBES+=${EXTRA_LOADLIBES}
 
 all: default
-bin: mstflint mstmread mstmwrite mstregdump
+bin: mstflint mstmread mstmwrite mstregdump mstvpd
 
 default: bin
 static: bin
diff --git a/vpd.c b/vpd.c
index 98e113059a341c5bd05ed8dddd4236af0f6bc252..c77c2cde0cc1fb2b6b3446abc26910c9332d1b06 100644 (file)
--- a/vpd.c
+++ b/vpd.c
@@ -203,10 +203,8 @@ int vpd_read(int device, vpd_t vpd)
 /* Verify that keywords in R and W sections fit in length. */
 int vpd_check_one(union vpd_data_type *d, unsigned offset)
 {
-       unsigned char b;
        unsigned i;
        struct vpd_field *field;
-       int checksum_len = 0;
 
        if (VPD_TAG_NAME(d) == VPD_TAG_R ||
            VPD_TAG_NAME(d) == VPD_TAG_W)
@@ -353,7 +351,7 @@ void vpd_show(FILE *f, vpd_t vpd, const char *keyword)
 
 int pci_parse_name(const char *name, char buf[4096])
 {
-       int domain, bus, dev, func, scnt, tmp;
+       int domain, bus, dev, func, tmp;
        struct stat dummybuf;
 
        if (*name == '/') {