Skip to contentSkip to conversation

tabled: fix build warnings

PATCH Applied Pete Zaitcev 2 participants 2 messages Sep 29, 2009 – Sep 30, 2009 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tabled: fix build warnings

lib/readport.c +1 -1
index db0c2bc..ca5fcab 100644
@@ -1,4 +1,5 @@
 #include <stdlib.h>
+#include <string.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -9,7 +10,6 @@
  */
 int tb_readport(const char *fname, char *buf, size_t len)
 {
-	long port;
 	int fd;
 	char *s;
 	int rc;
server/storage.c +1 -1
index 398e64a..6e1c019 100644
@@ -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;