From 60c92512459bf4e5a072387dfa4d03ae85035cba Mon Sep 17 00:00:00 2001 From: vda Date: Thu, 12 Oct 2006 22:43:20 +0000 Subject: bb_get_[chomped]line_from_file wasn't descriptive enough. Renaming... git-svn-id: svn://busybox.net/trunk/busybox@16375 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- include/libbb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index ac48411c0..767a3378b 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -230,8 +230,9 @@ extern void erase_mtab(const char * name); extern long *find_pid_by_name( const char* pidName); extern long *pidlist_reverse(long *pidList); extern char *find_block_device(char *path); -extern char *bb_get_line_from_file(FILE *file); -extern char *bb_get_chomped_line_from_file(FILE *file); +extern char *xmalloc_fgets(FILE *file); +/* Chops off '\n' from the end, unlike fgets: */ +extern char *xmalloc_getline(FILE *file); extern char *bb_get_chunk_from_file(FILE *file, int *end); extern off_t bb_copyfd_size(int fd1, int fd2, off_t size); extern off_t bb_copyfd_eof(int fd1, int fd2); -- cgit v1.2.3-55-g6feb