summaryrefslogtreecommitdiff
path: root/apps/pdfshow.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/pdfshow.c
parent0e8b28ee6e64685ca9ae1f9ed0e4b0eaf31317b9 (diff)
downloadmupdf-9b8e79655f03fccae3a42e0a0bac19d82d71f521.tar.xz
Make internal functions static.
Diffstat (limited to 'apps/pdfshow.c')
-rw-r--r--apps/pdfshow.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/pdfshow.c b/apps/pdfshow.c
index 164daca0..19fab461 100644
--- a/apps/pdfshow.c
+++ b/apps/pdfshow.c
@@ -4,11 +4,11 @@
#include "pdftool.h"
-int showbinary = 0;
-int showdecode = 0;
-int showcolumn;
+static int showbinary = 0;
+static int showdecode = 0;
+static int showcolumn;
-void showusage(void)
+static void showusage(void)
{
fprintf(stderr, "usage: pdfshow [-bx] [-d password] <file> [xref] [trailer] [object numbers]\n");
fprintf(stderr, " -b \tprint streams as raw binary data\n");
@@ -17,7 +17,7 @@ void showusage(void)
exit(1);
}
-void showtrailer(void)
+static void showtrailer(void)
{
if (!xref)
die(fz_throw("no file specified"));
@@ -26,7 +26,7 @@ void showtrailer(void)
printf("\n");
}
-void showxref(void)
+static void showxref(void)
{
if (!xref)
die(fz_throw("no file specified"));
@@ -34,7 +34,7 @@ void showxref(void)
printf("\n");
}
-void showsafe(unsigned char *buf, int n)
+static void showsafe(unsigned char *buf, int n)
{
int i;
for (i = 0; i < n; i++) {
@@ -57,7 +57,7 @@ void showsafe(unsigned char *buf, int n)
}
}
-void showstream(int num, int gen)
+static void showstream(int num, int gen)
{
fz_error error;
fz_stream *stm;
@@ -89,7 +89,7 @@ void showstream(int num, int gen)
fz_dropstream(stm);
}
-void showobject(int num, int gen)
+static void showobject(int num, int gen)
{
fz_error error;
fz_obj *obj;