projects
/
nbd.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6c303a
)
r148: Make code warning-free
author
yoe <yoe>
Thu, 9 Mar 2006 22:18:27 +0000
(22:18 +0000)
committer
yoe <yoe>
Thu, 9 Mar 2006 22:18:27 +0000
(22:18 +0000)
nbd-tester-client.c
patch
|
blob
|
history
diff --git
a/nbd-tester-client.c
b/nbd-tester-client.c
index
9cc3aca
..
cecddf7
100644
(file)
--- a/
nbd-tester-client.c
+++ b/
nbd-tester-client.c
@@
-29,6
+29,7
@@
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <unistd.h>
#include "config.h"
#include "lfs.h"
#define MY_NAME "nbd-tester-client"
@@
-52,7
+53,7
@@
typedef enum {
inline int read_all(int f, void *buf, size_t len) {
ssize_t res;
- int retval=0;
+ size_t retval=0;
while(len>0) {
if((res=read(f, buf, len)) <=0) {