From 6c9cb764219c0120ba19bba78e01d1bb6e42c665 Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Mon, 22 Jan 2007 21:12:33 +0200 Subject: [PATCH] Add mstvpd to default target. Make build -Wall clean. --- Makefile | 2 +- vpd.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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 == '/') { -- 2.41.0