freebsd-ports/misc/libmcal/files/patch-mstore_mstore.c
Thierry Thomas 27fa7bdddb - Fix build with gcc42 (lvalue required as left operand of assignment).
Since I'm here:

- update my e-mail;
- set USE_LDCONFIG;
- fix pkg-message for package installation;
- use DOCSDIR.

Reported by:	pointyhat via Kris
2007-03-20 21:22:49 +00:00

20 lines
720 B
C

--- mstore/mstore.c.orig Tue Jan 28 18:31:33 2003
+++ mstore/mstore.c Tue Mar 20 21:46:20 2007
@@ -308,7 +308,7 @@
if (!reopen) {
if ((stream = calloc(1, sizeof(*stream))) == NULL)
goto fail;
- if ((DATA = calloc(1, sizeof(*DATA))) == NULL)
+ if ((stream->data = calloc(1, sizeof(*DATA))) == NULL)
goto fail;
}
@@ -773,7 +773,7 @@
while((event=read_event(calfile))) {
if (event->id == modified_event->id)
{
- (const CALEVENT*)event = modified_event;
+ event = modified_event;
/*is more required here to assign objects, a loop through all the properties*/
/* We actually only want to modify any individual property, not the whole thing..
TODO */