projects
/
platform
/
upstream
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
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 9cc3aca06f911ea317784525b56637330eca640b..cecddf7331b20086a4d652b1a45aefdb6178e0cf 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;
-
in
t retval=0;
+
size_
t retval=0;
while(len>0) {
if((res=read(f, buf, len)) <=0) {