summaryrefslogtreecommitdiff
path: root/apps/pdfclean.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-07 19:28:34 +0200
committerTor Andersson <tor@ghostscript.com>2010-07-07 19:28:34 +0200
commita94368901527fbb14533fded657090d6142952b4 (patch)
tree073640310346f915d34a98a3bb52ec80add159a1 /apps/pdfclean.c
parentc98ef7c874ebcd28bf6edcfca4d13ec59d761434 (diff)
downloadmupdf-a94368901527fbb14533fded657090d6142952b4.tar.xz
Remove local argument that shadowed and duplicated a global.
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r--apps/pdfclean.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index 0fd9512a..31fba0f7 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -22,21 +22,21 @@ static int doexpand = 0;
* Garbage collect objects not reachable from the trailer.
*/
-static fz_error sweepref(pdf_xref *xref, fz_obj *ref);
+static fz_error sweepref(fz_obj *ref);
-static fz_error sweepobj(pdf_xref *xref, fz_obj *obj)
+static fz_error sweepobj(fz_obj *obj)
{
fz_error error;
int i;
if (fz_isindirect(obj))
- return sweepref(xref, obj);
+ return sweepref(obj);
if (fz_isdict(obj))
{
for (i = 0; i < fz_dictlen(obj); i++)
{
- error = sweepobj(xref, fz_dictgetval(obj, i));
+ error = sweepobj(fz_dictgetval(obj, i));
if (error)
return error; /* too deeply nested for rethrow */
}
@@ -46,7 +46,7 @@ static fz_error sweepobj(pdf_xref *xref, fz_obj *obj)
{
for (i = 0; i < fz_arraylen(obj); i++)
{
- error = sweepobj(xref, fz_arrayget(obj, i));
+ error = sweepobj(fz_arrayget(obj, i));
if (error)
return error; /* too deeply nested for rethrow */
}
@@ -55,7 +55,7 @@ static fz_error sweepobj(pdf_xref *xref, fz_obj *obj)
return fz_okay;
}
-static fz_error sweepref(pdf_xref *xref, fz_obj *obj)
+static fz_error sweepref(fz_obj *obj)
{
fz_error error;
fz_obj *len;
@@ -83,7 +83,7 @@ static fz_error sweepref(pdf_xref *xref, fz_obj *obj)
}
}
- error = sweepobj(xref, fz_resolveindirect(obj));
+ error = sweepobj(fz_resolveindirect(obj));
if (error)
{
fz_dropobj(obj);
@@ -403,7 +403,7 @@ int main(int argc, char **argv)
}
/* Sweep & mark objects from the trailer */
- error = sweepobj(xref, xref->trailer);
+ error = sweepobj(xref->trailer);
if (error)
die(fz_rethrow(error, "cannot mark used objects"));