summaryrefslogtreecommitdiffstats
path: root/crypto/fs_mgr/fs_mgr.c
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-08-07 18:52:09 +0200
committerDees_Troy <dees_troy@teamw.in>2013-08-11 15:43:12 +0200
commitb8934dd456998732e3c570f4402fe09e59252701 (patch)
tree75ef5f313ca642f566e6d03eb9d4ad60a95a07f2 /crypto/fs_mgr/fs_mgr.c
parentAdd libselinux for CM10.2 tree (diff)
downloadandroid_bootable_recovery-b8934dd456998732e3c570f4402fe09e59252701.tar
android_bootable_recovery-b8934dd456998732e3c570f4402fe09e59252701.tar.gz
android_bootable_recovery-b8934dd456998732e3c570f4402fe09e59252701.tar.bz2
android_bootable_recovery-b8934dd456998732e3c570f4402fe09e59252701.tar.lz
android_bootable_recovery-b8934dd456998732e3c570f4402fe09e59252701.tar.xz
android_bootable_recovery-b8934dd456998732e3c570f4402fe09e59252701.tar.zst
android_bootable_recovery-b8934dd456998732e3c570f4402fe09e59252701.zip
Diffstat (limited to 'crypto/fs_mgr/fs_mgr.c')
-rw-r--r--crypto/fs_mgr/fs_mgr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/fs_mgr/fs_mgr.c b/crypto/fs_mgr/fs_mgr.c
index bebb25261..02f3ac57b 100644
--- a/crypto/fs_mgr/fs_mgr.c
+++ b/crypto/fs_mgr/fs_mgr.c
@@ -167,7 +167,7 @@ out:
* then return an empty buffer. This effectively ignores lines that are too long.
* On EOF, return null.
*/
-static char *getline(char *buf, int size, FILE *file)
+static char *fs_mgr_getline(char *buf, int size, FILE *file)
{
int cnt = 0;
int eof = 0;
@@ -241,7 +241,7 @@ static struct fstab_rec *read_fstab(char *fstab_path)
}
entries = 0;
- while (getline(line, sizeof(line), fstab_file)) {
+ while (fs_mgr_getline(line, sizeof(line), fstab_file)) {
/* if the last character is a newline, shorten the string by 1 byte */
len = strlen(line);
if (line[len - 1] == '\n') {
@@ -268,7 +268,7 @@ static struct fstab_rec *read_fstab(char *fstab_path)
fseek(fstab_file, 0, SEEK_SET);
cnt = 0;
- while (getline(line, sizeof(line), fstab_file)) {
+ while (fs_mgr_getline(line, sizeof(line), fstab_file)) {
/* if the last character is a newline, shorten the string by 1 byte */
len = strlen(line);
if (line[len - 1] == '\n') {