From e8c1720d8476aa310bf470d023e59f3d5e14a84a Mon Sep 17 00:00:00 2001 From: james Date: Sat, 5 Nov 2005 07:42:33 +0000 Subject: svn merge -r 771:780 $SO/trunk/openvpn git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@781 e7ae566f-a301-0410-adde-c780ea21d3b5 --- misc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 278e8d7..0347238 100644 --- a/misc.c +++ b/misc.c @@ -842,6 +842,14 @@ manage_env (char *str) /* add/modify/delete environmental strings */ +void +setenv_counter (struct env_set *es, const char *name, counter_type value) +{ + char buf[64]; + openvpn_snprintf (buf, sizeof(buf), counter_format, value); + setenv_str (es, name, buf); +} + void setenv_int (struct env_set *es, const char *name, int value) { -- cgit