summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-01-24 10:53:33 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-01-24 10:53:33 +0000
commit72a97cedb7be026e1b83c4728d7199b7ae9df7ca (patch)
tree9d3b8830b95b5137407055b56f26c40def6a65dc /sbin/pfctl
parent2204e2432a2c6de70719d1563b4fa45ea6641ea5 (diff)
export rate2str
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl.h3
-rw-r--r--sbin/pfctl/pfctl_altq.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.h b/sbin/pfctl/pfctl.h
index c5a71051c9a..2ac1ef54de4 100644
--- a/sbin/pfctl/pfctl.h
+++ b/sbin/pfctl/pfctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.h,v 1.7 2003/01/20 19:05:46 camield Exp $ */
+/* $OpenBSD: pfctl.h,v 1.8 2003/01/24 10:53:32 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -83,6 +83,7 @@ struct pf_altq *pfaltq_lookup(const char *);
struct pf_altq *qname_to_pfaltq(const char *, const char *);
u_int32_t qname_to_qid(const char *, const char *);
char *qid_to_qname(u_int32_t, const char *);
+char *rate2str(double);
void print_altq(const struct pf_altq *, unsigned);
void print_queue(const struct pf_altq *, unsigned);
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index aac597f36d8..0bc05f461c8 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.34 2003/01/20 19:07:50 henning Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.35 2003/01/24 10:53:32 henning Exp $ */
/*
* Copyright (C) 2002
@@ -78,7 +78,6 @@ static int gsc_add_seg(struct gen_sc *, double, double, double,
double);
static double sc_x2y(struct service_curve *, double);
-static char *rate2str(double);
u_int32_t getifspeed(char *);
u_long getifmtu(char *);
@@ -1008,7 +1007,7 @@ sc_x2y(struct service_curve *sc, double x)
#define R2S_BUFS 8
#define RATESTR_MAX 16
-static char *
+char *
rate2str(double rate)
{
char *buf;