From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Zaitcev Subject: [Patch] tabled: fix build warnings Date: Tue, 29 Sep 2009 16:04:02 -0600 Message-ID: <20090929160402.23467aec@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jeff Garzik Cc: Project Hail List Signed-off-by: Pete Zaitcev diff --git a/lib/readport.c b/lib/readport.c index db0c2bc..ca5fcab 100644 --- a/lib/readport.c +++ b/lib/readport.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -9,7 +10,6 @@ */ int tb_readport(const char *fname, char *buf, size_t len) { - long port; int fd; char *s; int rc; diff --git a/server/storage.c b/server/storage.c index 398e64a..6e1c019 100644 --- a/server/storage.c +++ b/server/storage.c @@ -120,7 +120,7 @@ int stor_open_read(struct open_chunk *cep, void (*cb)(struct open_chunk *), uint64_t key, uint64_t *psize) { char stckey[STOR_KEY_SLEN+1]; - size_t size; + uint64_t size; if (!cep->stc) return -EINVAL;