27 lines
732 B
Plaintext
27 lines
732 B
Plaintext
$OpenBSD: patch-src_parsetime_c,v 1.2 2004/06/08 20:21:24 danh Exp $
|
|
--- src/parsetime.c.orig 2004-04-06 17:38:11.000000000 -0400
|
|
+++ src/parsetime.c 2004-06-08 12:48:46.000000000 -0400
|
|
@@ -242,9 +242,11 @@ static int sc_tokid; /* scanner - token
|
|
|
|
static int need_to_free = 0; /* means that we need deallocating memory */
|
|
|
|
+void EnsureMemFree (void);
|
|
+
|
|
/* Local functions */
|
|
|
|
-void EnsureMemFree ()
|
|
+void EnsureMemFree (void)
|
|
{
|
|
if( need_to_free )
|
|
{
|
|
@@ -659,7 +661,8 @@ assign_date(struct rrd_time_value *ptv,
|
|
static char *
|
|
day(struct rrd_time_value *ptv)
|
|
{
|
|
- long mday=0, wday, mon, year = ptv->tm.tm_year;
|
|
+ long mday=0, wday, year = ptv->tm.tm_year;
|
|
+ time_t mon;
|
|
int tlen;
|
|
time_t montime;
|
|
|