Skip to content

Commit 29a7423

Browse files
committed
Fixes mpaland#74: Fixes mpaland#74: Functions in printf.c without printf.h prototypes are now static, and will not raise any eyebrows when the resulting object is inspected.
1 parent 3f6d972 commit 29a7423

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/printf/printf.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,17 +480,17 @@ struct scaling_factor {
480480
bool multiply; // if true, need to multiply by raw_factor; otherwise need to divide by it
481481
};
482482

483-
double apply_scaling(double num, struct scaling_factor normalization)
483+
static double apply_scaling(double num, struct scaling_factor normalization)
484484
{
485485
return normalization.multiply ? num * normalization.raw_factor : num / normalization.raw_factor;
486486
}
487487

488-
double unapply_scaling(double normalized, struct scaling_factor normalization)
488+
static double unapply_scaling(double normalized, struct scaling_factor normalization)
489489
{
490490
return normalization.multiply ? normalized / normalization.raw_factor : normalized * normalization.raw_factor;
491491
}
492492

493-
struct scaling_factor update_normalization(struct scaling_factor sf, double extra_multiplicative_factor)
493+
static struct scaling_factor update_normalization(struct scaling_factor sf, double extra_multiplicative_factor)
494494
{
495495
struct scaling_factor result;
496496
if (sf.multiply) {

0 commit comments

Comments
 (0)