X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Futils.c;h=d7683075dc3e352cb0d1729f691d3cb0a2d78777;hp=81065353efa888e720770218d8448853e905c1ba;hb=cf3c678c8246fc326b69ae64b4e2766a69df5704;hpb=ec40efb27b38fade97c7531a106809ba89a10e2c diff --git a/src/utils.c b/src/utils.c index 81065353..d7683075 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1149,18 +1149,18 @@ read_whole_line (FILE *fp) zero-terminated, and you should *not* read or write beyond the [0, length) range of characters. - After you are done with the file contents, call read_file_free to + After you are done with the file contents, call wget_read_file_free to release the memory. Depending on the operating system and the type of file that is - being read, read_file() either mmap's the file into memory, or + being read, wget_read_file() either mmap's the file into memory, or reads the file into the core using read(). If file is named "-", fileno(stdin) is used for reading instead. If you want to read from a real file named "-", use "./-" instead. */ struct file_memory * -read_file (const char *file) +wget_read_file (const char *file) { int fd; struct file_memory *fm; @@ -1270,7 +1270,7 @@ read_file (const char *file) memory needed to hold the FM structure itself. */ void -read_file_free (struct file_memory *fm) +wget_read_file_free (struct file_memory *fm) { #ifdef HAVE_MMAP if (fm->mmap_p)