diff options
Diffstat (limited to 'lib-src/test-distrib.c')
| -rw-r--r-- | lib-src/test-distrib.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib-src/test-distrib.c b/lib-src/test-distrib.c index 1487c2bab57..aca46f121fa 100644 --- a/lib-src/test-distrib.c +++ b/lib-src/test-distrib.c | |||
| @@ -19,24 +19,14 @@ You should have received a copy of the GNU General Public License | |||
| 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 19 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | #ifdef HAVE_CONFIG_H | ||
| 23 | #include <config.h> | 22 | #include <config.h> |
| 24 | #endif | ||
| 25 | |||
| 26 | #include <stdio.h> | 23 | #include <stdio.h> |
| 27 | |||
| 28 | #ifdef HAVE_FCNTL_H | ||
| 29 | #include <fcntl.h> | 24 | #include <fcntl.h> |
| 30 | #endif | ||
| 31 | 25 | ||
| 32 | #ifdef HAVE_UNISTD_H | 26 | #ifdef HAVE_UNISTD_H |
| 33 | #include <unistd.h> | 27 | #include <unistd.h> |
| 34 | #endif | 28 | #endif |
| 35 | 29 | ||
| 36 | #ifndef O_RDONLY | ||
| 37 | #define O_RDONLY 0 | ||
| 38 | #endif | ||
| 39 | |||
| 40 | /* Break string in two parts to avoid buggy C compilers that ignore characters | 30 | /* Break string in two parts to avoid buggy C compilers that ignore characters |
| 41 | after nulls in strings. */ | 31 | after nulls in strings. */ |
| 42 | 32 | ||
| @@ -55,7 +45,7 @@ int | |||
| 55 | cool_read (int fd, char *buf, size_t size) | 45 | cool_read (int fd, char *buf, size_t size) |
| 56 | { | 46 | { |
| 57 | ssize_t num; | 47 | ssize_t num; |
| 58 | size_t sofar = 0; | 48 | ssize_t sofar = 0; |
| 59 | 49 | ||
| 60 | while (1) | 50 | while (1) |
| 61 | { | 51 | { |