summaryrefslogtreecommitdiff
path: root/apps/pdfclean.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2009-07-05 21:28:18 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2009-07-05 21:28:18 +0200
commit9b8e79655f03fccae3a42e0a0bac19d82d71f521 (patch)
tree8b3b673fa6748fe4821ac568f8d9bf18d64f0187 /apps/pdfclean.c
parent0e8b28ee6e64685ca9ae1f9ed0e4b0eaf31317b9 (diff)
downloadmupdf-9b8e79655f03fccae3a42e0a0bac19d82d71f521.tar.xz
Make internal functions static.
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r--apps/pdfclean.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index 588a7ac7..0c8b263c 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -18,9 +18,9 @@ static char *uselist = NULL;
static int *ofslist = NULL;
static int *genlist = NULL;
-int doencrypt = 0;
-int dogarbage = 0;
-int doexpand = 0;
+static int doencrypt = 0;
+static int dogarbage = 0;
+static int doexpand = 0;
/*
* Garbage collect objects not reachable from the trailer.
@@ -100,7 +100,7 @@ static fz_error sweepref(pdf_xref *xref, fz_obj *ref)
return fz_okay;
}
-void preloadobjstms(void)
+static void preloadobjstms(void)
{
fz_error error;
fz_obj *obj;
@@ -118,7 +118,7 @@ void preloadobjstms(void)
}
}
-void copystream(fz_obj *obj, int oid, int gen)
+static void copystream(fz_obj *obj, int oid, int gen)
{
fz_error error;
fz_buffer *buf;
@@ -143,7 +143,7 @@ void copystream(fz_obj *obj, int oid, int gen)
fz_dropbuffer(buf);
}
-void expandstream(fz_obj *obj, int oid, int gen)
+static void expandstream(fz_obj *obj, int oid, int gen)
{
fz_error error;
fz_buffer *buf;
@@ -179,7 +179,7 @@ void expandstream(fz_obj *obj, int oid, int gen)
fz_dropbuffer(buf);
}
-void saveobject(int oid, int gen)
+static void saveobject(int oid, int gen)
{
fz_error error;
fz_obj *obj;
@@ -230,7 +230,7 @@ void saveobject(int oid, int gen)
fz_dropobj(obj);
}
-void savexref(void)
+static void savexref(void)
{
fz_obj *trailer;
fz_obj *obj;
@@ -279,7 +279,7 @@ void savexref(void)
fprintf(out, "startxref\n%d\n%%%%EOF\n", startxref);
}
-void cleanusage(void)
+static void cleanusage(void)
{
fprintf(stderr,
"usage: pdfclean [options] input.pdf [outfile.pdf]\n"