diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-12 10:31:23 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-12 10:31:23 +0000 |
commit | 43ad3d03311b20d626c35d8a1537d13e5764d625 (patch) | |
tree | 48f91f8039f5c22cc5891a2f4f97a4b4f439abcc /Build/source/texk/ps2pkm/pkout.c | |
parent | 5c7cda775a2f1bffea4e622099d226715b57dc6a (diff) |
texk/ps2pkm: General cleanup: ANSI/ISO C functions and more
git-svn-id: svn://tug.org/texlive/trunk@35361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pkm/pkout.c')
-rw-r--r-- | Build/source/texk/ps2pkm/pkout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/texk/ps2pkm/pkout.c b/Build/source/texk/ps2pkm/pkout.c index aa97a0e99b0..82441da3844 100644 --- a/Build/source/texk/ps2pkm/pkout.c +++ b/Build/source/texk/ps2pkm/pkout.c @@ -42,7 +42,7 @@ void pk_open(char *pkname) if (pkfile == NULL) fatal("Can not open %s\n", pkname); } -void pk_close() +void pk_close(void) { fclose(pkfile); } @@ -356,6 +356,7 @@ static void pk_bitmap(int width, int cnt, int runlength[]) buff = 0; p_bit = 8; h_bit = width; state = 0; rc = 0; + r_on = s_on = r_count = s_count = r_i = s_i = 0; /* avoid warnings */ on = 1; count = runlength[0]; i = 1; while (i < cnt || state || count>0) { if (state) { @@ -537,12 +538,13 @@ static char *magnification (int dpi, int BDPI) { return mag_str; } } + fatal("PK could not determine magnification\n"); } /* * Barebone postample */ -void pk_postamble() +void pk_postamble(void) { pk1(PK_POST); while (pk_len % 4 != 0) pk1(PK_NOOP); |