diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-08 07:05:53 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-10-08 07:05:53 +0000 |
commit | a0bf5a0634d9ee69a111d574784b485096c45c16 (patch) | |
tree | aa60d8924e00735fb0546fe97f83c9db8fc6fcba /Build/source/texk/ps2pkm/pkout.c | |
parent | 33e0625cb297161800e5199be582eac0f37f7ad1 (diff) |
texk/ps2pkm: More cleanup: return types, protos, static, const, ...
git-svn-id: svn://tug.org/texlive/trunk@35330 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ps2pkm/pkout.c')
-rw-r--r-- | Build/source/texk/ps2pkm/pkout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/ps2pkm/pkout.c b/Build/source/texk/ps2pkm/pkout.c index 809fd7c6da3..aa97a0e99b0 100644 --- a/Build/source/texk/ps2pkm/pkout.c +++ b/Build/source/texk/ps2pkm/pkout.c @@ -123,7 +123,7 @@ void pk_preamble(char *comment, /* source of the font */ /* From `The GFtoPK processor', pp. 231 */ -int optimal_size(int W, int H, int cnt, int count[], int *dyn_f) +static int optimal_size(int W, int H, int cnt, int count[], int *dyn_f) { int comp_size = 0, b_comp_size, deriv[14], i, j, k; i = (count[0] == 0? 1: 0); /* skip first empty runlength */ @@ -476,7 +476,7 @@ void pk_char(int char_code, /* character code 0..255 */ /* * Output small string special (<255 chars) */ -static void pkstring(char *fmt, ...) { +static void pkstring(const char *fmt, ...) { char buf[256]; int i, len; va_list args; @@ -499,13 +499,13 @@ static void pkstring(char *fmt, ...) { * Compute METAFONT magnification string for <dpi> */ -int PSPKINT(float x) { +static int PSPKINT(float x) { return (int) x; } static char mag_str[64]; -char *magnification (int dpi, int BDPI) { +static char *magnification (int dpi, int BDPI) { double size, magstep; if (dpi == BDPI) { |