summaryrefslogtreecommitdiffstats
path: root/fs_mgr
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2015-03-26 08:07:45 +0000
committerSami Tolvanen <samitolvanen@google.com>2015-03-26 11:44:42 +0000
commit4d3ead9d7c08d2bb0f3af2166b72f57e6e1755e0 (patch)
tree44be03645694c20ae9208c9380bad3604f65b11b /fs_mgr
parentd33c6c0ef2a7b28b66aa372579bb8b2ac9d65ba6 (diff)
downloadsystem_core-4d3ead9d7c08d2bb0f3af2166b72f57e6e1755e0.zip
system_core-4d3ead9d7c08d2bb0f3af2166b72f57e6e1755e0.tar.gz
system_core-4d3ead9d7c08d2bb0f3af2166b72f57e6e1755e0.tar.bz2
Fix build
Fix build breakage in aosp_fugu-userdebug_clang (linux) caused by Id8711f7d51dc1e4e9a4d84f9951240f64528e69d Change-Id: Icd04aeaf131be045cf5788846ae9832e6cbbb944
Diffstat (limited to 'fs_mgr')
-rw-r--r--fs_mgr/fs_mgr_verity.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/fs_mgr/fs_mgr_verity.c b/fs_mgr/fs_mgr_verity.c
index 0d5357b..acdc5a3 100644
--- a/fs_mgr/fs_mgr_verity.c
+++ b/fs_mgr/fs_mgr_verity.c
@@ -463,15 +463,15 @@ static int was_verity_restart()
static int metadata_add(FILE *fp, long start, const char *tag,
unsigned int length, off64_t *offset)
{
- if (TEMP_FAILURE_RETRY(fseek(fp, start, SEEK_SET)) < 0 ||
- TEMP_FAILURE_RETRY(fprintf(fp, "%s %u\n", tag, length)) < 0) {
+ if (fseek(fp, start, SEEK_SET) < 0 ||
+ fprintf(fp, "%s %u\n", tag, length) < 0) {
return -1;
}
*offset = ftell(fp);
- if (TEMP_FAILURE_RETRY(fseek(fp, length, SEEK_CUR)) < 0 ||
- TEMP_FAILURE_RETRY(fprintf(fp, METADATA_EOD " 0\n")) < 0) {
+ if (fseek(fp, length, SEEK_CUR) < 0 ||
+ fprintf(fp, METADATA_EOD " 0\n") < 0) {
return -1;
}
@@ -493,7 +493,7 @@ static int metadata_find(const char *fname, const char *stag,
return -1;
}
- fp = TEMP_FAILURE_RETRY(fopen(fname, "r+"));
+ fp = fopen(fname, "r+");
if (!fp) {
ERROR("Failed to open %s (%s)\n", fname, strerror(errno));
@@ -501,8 +501,8 @@ static int metadata_find(const char *fname, const char *stag,
}
/* check magic */
- if (TEMP_FAILURE_RETRY(fseek(fp, start, SEEK_SET)) < 0 ||
- TEMP_FAILURE_RETRY(fread(&magic, sizeof(magic), 1, fp)) != 1) {
+ if (fseek(fp, start, SEEK_SET) < 0 ||
+ fread(&magic, sizeof(magic), 1, fp) != 1) {
ERROR("Failed to read magic from %s (%s)\n", fname, strerror(errno));
goto out;
}
@@ -510,8 +510,8 @@ static int metadata_find(const char *fname, const char *stag,
if (magic != METADATA_MAGIC) {
magic = METADATA_MAGIC;
- if (TEMP_FAILURE_RETRY(fseek(fp, start, SEEK_SET)) < 0 ||
- TEMP_FAILURE_RETRY(fwrite(&magic, sizeof(magic), 1, fp)) != 1) {
+ if (fseek(fp, start, SEEK_SET) < 0 ||
+ fwrite(&magic, sizeof(magic), 1, fp) != 1) {
ERROR("Failed to write magic to %s (%s)\n", fname, strerror(errno));
goto out;
}
@@ -527,9 +527,8 @@ static int metadata_find(const char *fname, const char *stag,
start += sizeof(magic);
while (1) {
- n = TEMP_FAILURE_RETRY(fscanf(fp,
- "%" STRINGIFY(METADATA_TAG_MAX_LENGTH) "s %u\n",
- tag, &length));
+ n = fscanf(fp, "%" STRINGIFY(METADATA_TAG_MAX_LENGTH) "s %u\n",
+ tag, &length);
if (n == 2 && strcmp(tag, METADATA_EOD)) {
/* found a tag */
@@ -543,7 +542,7 @@ static int metadata_find(const char *fname, const char *stag,
start += length;
- if (TEMP_FAILURE_RETRY(fseek(fp, length, SEEK_CUR)) < 0) {
+ if (fseek(fp, length, SEEK_CUR) < 0) {
ERROR("Failed to seek %s (%s)\n", fname, strerror(errno));
goto out;
}
@@ -559,8 +558,8 @@ static int metadata_find(const char *fname, const char *stag,
out:
if (fp) {
- TEMP_FAILURE_RETRY(fflush(fp));
- TEMP_FAILURE_RETRY(fclose(fp));
+ fflush(fp);
+ fclose(fp);
}
return rc;