ports/sysutils/monitord/files/patch-ab
Alexey Dokuchaev 24c0e6d51a Actually add patch file forgotten in previous commit.
Approved by:	portmgr (marcus)
		fjoe (mentor, implicit)
2004-10-05 20:37:12 +00:00

18 lines
727 B
Text

--- monitord.c.orig Fri Jan 17 03:39:44 2003
+++ monitord.c Thu Sep 23 17:23:02 2004
@@ -454,13 +454,13 @@
struct timeval *tp;
struct timezone *tzp;
- const time_t *time;
+ time_t *time;
char *buf;
buf = (char *) malloc ( (size_t) _BUFSIZE ); // init the time buffer
tp = (struct timeval *) malloc ( (size_t) sizeof (struct timeval) ); // init the time buffer
tzp = (struct timezone *) malloc ( (size_t) sizeof (struct timezone) ); // init the timezone buffer
- time = (const time_t *) malloc ( (size_t) sizeof (time_t) ); // init the timezone buffer
+ time = (time_t *) malloc ( (size_t) sizeof (time_t) ); // init the timezone buffer
/* Get time of day in seconds since Epoch */
gettimeofday (tp, tzp);