Changeset 1809 for trunk/src/kmk/read.c
- Timestamp:
- Oct 10, 2008, 4:27:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/read.c
r1807 r1809 418 418 if (!fstat (fileno (ebuf.fp), &st)) 419 419 { 420 unsignedint stream_buf_size = 256*1024;420 int stream_buf_size = 256*1024; 421 421 if (st.st_size < stream_buf_size) 422 stream_buf_size = (st.st_size + 0xfff) & ~0xfff U;422 stream_buf_size = (st.st_size + 0xfff) & ~0xfff; 423 423 stream_buf = xmalloc (stream_buf_size); 424 424 setvbuf (ebuf.fp, stream_buf, _IOFBF, stream_buf_size); … … 2803 2803 { 2804 2804 char *eol; 2805 #ifdef KMK2805 #ifdef CONFIG_WITH_VALUE_LENGTH 2806 2806 char *end; 2807 2807 #endif … … 2815 2815 2816 2816 eol = ebuf->buffer = ebuf->bufnext; 2817 #ifdef KMK2817 #ifdef CONFIG_WITH_VALUE_LENGTH 2818 2818 end = ebuf->bufstart + ebuf->size; 2819 2819 #endif … … 2826 2826 2827 2827 /* Find the next newline. At EOS, stop. */ 2828 #ifndef KMK2828 #ifndef CONFIG_WITH_VALUE_LENGTH 2829 2829 eol = p = strchr (eol , '\n'); 2830 2830 #else
Note:
See TracChangeset
for help on using the changeset viewer.