diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/test-distrib.c | 12 |
2 files changed, 7 insertions, 11 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index a4b0ff37d07..e402fe44f94 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-11-15 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * test-distrib.c: Remove include guards for config.h and fcntl.h. | ||
| 4 | (O_RDONLY): Do not define. | ||
| 5 | (cool_read): Fix type for variable "sofar". | ||
| 6 | |||
| 1 | 2010-10-25 Glenn Morris <rgm@gnu.org> | 7 | 2010-10-25 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove easymenu.elc. | 9 | * makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove easymenu.elc. |
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 | { |