summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2013-05-25 10:57:26 +0200
committerportix <portix@gmx.net>2013-05-25 10:57:26 +0200
commita06a7081039cb5aa7aa13198af6fba4bebbd7842 (patch)
tree5610d2fbfce8af59bc1294088227f4daeb960d34
parentc198e9071cc1c1e23117ab0183c366b9a8d223ed (diff)
downloaddwb-a06a7081039cb5aa7aa13198af6fba4bebbd7842.zip
Replace check for 0 with EE_OK in exar.c
-rw-r--r--exar/exar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/exar/exar.c b/exar/exar.c
index dc4f5032..84cfe929 100644
--- a/exar/exar.c
+++ b/exar/exar.c
@@ -273,7 +273,7 @@ contains(const char *archive, const char *name, int (*cmp)(const char *, const c
if ((f = open_archive(archive, "r")) == NULL)
goto finish;
- while (next_file(f, &header) == 0)
+ while (next_file(f, &header) == EE_OK)
{
if (cmp(header.eh_name, name) == 0)
{
@@ -297,7 +297,7 @@ extract(const char *archive, const char *file, off_t *s, int (*cmp)(const char *
if ((f = open_archive(archive, "r")) == NULL)
goto finish;
- while (get_file_header(f, &header) == 0)
+ while (get_file_header(f, &header) == EE_OK)
{
if (cmp(header.eh_name, file) == 0)
{
@@ -577,7 +577,7 @@ exar_delete(const char *archive, const char *file)
if ((ftmp = fopen(tmp_file, "w")) == NULL)
goto finish;
- while ((status = get_file_header(f, &header)) == 0)
+ while ((status = get_file_header(f, &header)) == EE_OK)
{
if (strcmp(header.eh_name, file) == 0)
{
@@ -640,7 +640,7 @@ exar_info(const char *archive)
if ((f = open_archive(archive, "r")) == NULL)
goto finish;
- while(next_file(f, &header) == 0)
+ while(next_file(f, &header) == EE_OK)
fprintf(stdout, "%c %-14jd %s\n", header.eh_flag, (intmax_t)header.eh_size, header.eh_name);
finish:
close_file(f, archive);