Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemCore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemCore
Commits
4a8d1255
Commit
4a8d1255
authored
Oct 20, 2015
by
Elliott Hughes
Committed by
Gerrit Code Review
Oct 20, 2015
Browse files
Options
Downloads
Plain Diff
Merge "Fix parameter to lseek"
parents
56543606
f21f0f16
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libsparse/simg2img.c
+5
-4
5 additions, 4 deletions
libsparse/simg2img.c
with
5 additions
and
4 deletions
libsparse/simg2img.c
+
5
−
4
View file @
4a8d1255
...
@@ -40,7 +40,6 @@ int main(int argc, char *argv[])
...
@@ -40,7 +40,6 @@ int main(int argc, char *argv[])
int
in
;
int
in
;
int
out
;
int
out
;
int
i
;
int
i
;
int
ret
;
struct
sparse_file
*
s
;
struct
sparse_file
*
s
;
if
(
argc
<
3
)
{
if
(
argc
<
3
)
{
...
@@ -71,10 +70,12 @@ int main(int argc, char *argv[])
...
@@ -71,10 +70,12 @@ int main(int argc, char *argv[])
exit
(
-
1
);
exit
(
-
1
);
}
}
lseek
(
out
,
SEEK_SET
,
0
);
if
(
lseek
(
out
,
0
,
SEEK_SET
)
==
-
1
)
{
perror
(
"lseek failed"
);
exit
(
EXIT_FAILURE
);
}
ret
=
sparse_file_write
(
s
,
out
,
false
,
false
,
false
);
if
(
sparse_file_write
(
s
,
out
,
false
,
false
,
false
)
<
0
)
{
if
(
ret
<
0
)
{
fprintf
(
stderr
,
"Cannot write output file
\n
"
);
fprintf
(
stderr
,
"Cannot write output file
\n
"
);
exit
(
-
1
);
exit
(
-
1
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment