diff options
| author | Joakim Verona | 2010-10-18 22:05:07 +0200 |
|---|---|---|
| committer | Joakim Verona | 2010-10-18 22:05:07 +0200 |
| commit | 13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (patch) | |
| tree | 723f254768f9e503504ab4c8b68801f80a56591a /lib-src/test-distrib.c | |
| parent | 35f4b80a934b299b3b18e62f5db44f64c240e65b (diff) | |
| parent | e48eb34332dc91de823314090451459ba2ffacbf (diff) | |
| download | emacs-13cfe8df462ab8da9f0028e16cc84dcaceaca3d1.tar.gz emacs-13cfe8df462ab8da9f0028e16cc84dcaceaca3d1.zip | |
merge from upstream
Diffstat (limited to 'lib-src/test-distrib.c')
| -rw-r--r-- | lib-src/test-distrib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c index 880bd115882..1487c2bab57 100644 --- a/lib-src/test-distrib.c +++ b/lib-src/test-distrib.c | |||
| @@ -52,9 +52,10 @@ char buf[300]; | |||
| 52 | 52 | ||
| 53 | /* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */ | 53 | /* Like `read' but keeps trying until it gets SIZE bytes or reaches eof. */ |
| 54 | int | 54 | int |
| 55 | cool_read (int fd, char *buf, int size) | 55 | cool_read (int fd, char *buf, size_t size) |
| 56 | { | 56 | { |
| 57 | int num, sofar = 0; | 57 | ssize_t num; |
| 58 | size_t sofar = 0; | ||
| 58 | 59 | ||
| 59 | while (1) | 60 | while (1) |
| 60 | { | 61 | { |