File mcaldrivers-0.9.diff of Package mcal

--- icap/Makefile
+++ icap/Makefile
@@ -9,6 +9,8 @@
 
 all: $(TARGET)
 
+%.o: %.c
+	$(CC) $(CFLAGS) $(INCLUDE) -c $<
 
 $(TARGET): $(ALLOBJS)
 	ld -r -o $(TARGET) $(ALLOBJS)
--- mstore/Makefile
+++ mstore/Makefile
@@ -10,6 +10,8 @@
 
 all: $(TARGET)
 
+%.o: %.c
+	$(CC) $(CFLAGS) $(INCLUDE) -c $<
 
 $(TARGET): $(ALLOBJS)
 	ld -r -o $(TARGET) $(ALLOBJS)
--- mstore/mstore.c.orig	2005-04-10 15:04:27.145773854 +0200
+++ mstore/mstore.c	2005-04-10 15:23:35.766978825 +0200
@@ -308,7 +308,7 @@ mstore_open(CALSTREAM *stream, const CAL
 	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 @@ if(!modified_event->id)
         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 */
--- icap/icap.c.orig	2005-04-10 15:27:51.963174826 +0200
+++ icap/icap.c	2005-04-10 15:28:14.229281028 +0200
@@ -159,7 +159,7 @@ icap_open(CALSTREAM *stream, const CALAD
 	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;
 
 		/* Copy host. */
openSUSE Build Service is sponsored by