aboutsummaryrefslogtreecommitdiffstats
path: root/tc/q_netem.c
diff options
context:
space:
mode:
Diffstat (limited to 'tc/q_netem.c')
-rw-r--r--tc/q_netem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tc/q_netem.c b/tc/q_netem.c
index 2583072a..9dd8712f 100644
--- a/tc/q_netem.c
+++ b/tc/q_netem.c
@@ -87,12 +87,12 @@ static int get_percent(__u32 *percent, const char *str)
return 0;
}
-void print_percent(char *buf, int len, __u32 per)
+static void print_percent(char *buf, int len, __u32 per)
{
snprintf(buf, len, "%g%%", 100. * (double) per / max_percent_value);
}
-char * sprint_percent(__u32 per, char *buf)
+static char * sprint_percent(__u32 per, char *buf)
{
print_percent(buf, SPRINT_BSIZE-1, per);
return buf;