2 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] Trouble compiling new...
FromSent OnAttachments
Chuck CochemsJun 28, 2007 1:34 pm 
Sam VarshavchikJun 28, 2007 3:28 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] Trouble compiling newest version.Actions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Jun 28, 2007 3:28:24 pm
List:net.sourceforge.lists.courier-sqwebmail

Chuck Cochems writes:

gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -I.. -I./.. -c folder.c folder.c: In function `folder_delmsgs': folder.c:291: parse error before `char' folder.c:292: `cur' undeclared (first use in this function)

This should fix it.

--- sqwebmail/folder.c 20 May 2007 00:04:55 -0000 1.179 +++ sqwebmail/folder.c 28 Jun 2007 22:27:54 -0000 1.180 @@ -5,7 +5,7 @@

/* -** $Id: folder.c,v 1.179 2007/05/20 00:04:55 mrsam Exp $ +** $Id: folder.c,v 1.180 2007/06/28 22:27:54 mrsam Exp $ */ #include "config.h" #include <stdio.h> @@ -253,6 +253,7 @@ { int rc=0; char buf[2]; + char *cur;

strcpy(buf, ACL_DELETEMSGS); acl_computeRightsOnFolder(dir, buf); @@ -289,7 +290,7 @@ return; }

- char *cur = malloc(strlen(deldir)+5); + cur = malloc(strlen(deldir)+5); strcpy(cur, deldir); strcat(cur, "/cur");