From: Michael S. Tsirkin Date: Mon, 22 Jan 2007 19:12:33 +0000 (+0200) Subject: Add mstvpd to default target. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6c9cb764219c0120ba19bba78e01d1bb6e42c665;p=~adrianc%2Fmstflint.git Add mstvpd to default target. Make build -Wall clean. --- diff --git a/Makefile b/Makefile index 1e39343..87dcbdd 100644 --- 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 98e1130..c77c2cd 100644 --- 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 == '/') {