Browse code

More compilation errors on Solaris

git-svn: trunk@2485

Nigel Horne authored on 2006/11/05 18:58:31
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sun Nov  5 09:57:44 GMT 2006 (njh)
2
+----------------------------------
3
+  * clamav-milter:	Another go at bug 115
4
+
1 5
 Sun Nov  5 02:25:39 CET 2006 (acab)
2 6
 -----------------------------------
3 7
   * libclamav/pe.c:	RVA broken.executable checks
... ...
@@ -24,9 +24,9 @@
24 24
  *
25 25
  * For installation instructions see the file INSTALL that came with this file
26 26
  */
27
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.296 2006/11/03 21:27:29 njh Exp $";
27
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.297 2006/11/05 09:56:41 njh Exp $";
28 28
 
29
-#define	CM_VERSION	"devel-301006"
29
+#define	CM_VERSION	"devel-051106"
30 30
 
31 31
 #if HAVE_CONFIG_H
32 32
 #include "clamav-config.h"
... ...
@@ -276,7 +276,7 @@ static	sfsistat	clamfi_eom(SMFICTX *ctx);
276 276
 static	sfsistat	clamfi_abort(SMFICTX *ctx);
277 277
 static	sfsistat	clamfi_close(SMFICTX *ctx);
278 278
 static	void		clamfi_cleanup(SMFICTX *ctx);
279
-static	void		clamfi_free(struct privdata *privdata, int free);
279
+static	void		clamfi_free(struct privdata *privdata, int keep);
280 280
 static	int		clamfi_send(struct privdata *privdata, size_t len, const char *format, ...);
281 281
 static	long		clamd_recv(int sock, char *buf, size_t len);
282 282
 static	off_t		updateSigFile(void);
... ...
@@ -1275,7 +1275,7 @@ main(int argc, char **argv)
1275 1275
 		numServers = 1;
1276 1276
 	} else if(((cpt = cfgopt(copt, "LocalSocket")) != NULL) && cpt->enabled) {
1277 1277
 #ifdef	SESSION
1278
-		struct sockaddr_un sun;
1278
+		struct sockaddr_un sockun;
1279 1279
 #endif
1280 1280
 		char *sockname = NULL;
1281 1281
 
... ...
@@ -1327,9 +1327,9 @@ main(int argc, char **argv)
1327 1327
 #endif
1328 1328
 
1329 1329
 #ifdef	SESSION
1330
-		memset((char *)&sun, 0, sizeof(struct sockaddr_un));
1331
-		sun.sun_family = AF_UNIX;
1332
-		strncpy(sun.sun_path, localSocket, sizeof(sun.sun_path));
1330
+		memset((char *)&sockun, 0, sizeof(struct sockaddr_un));
1331
+		sockun.sun_family = AF_UNIX;
1332
+		strncpy(sockun.sun_path, localSocket, sizeof(sockun.sun_path));
1333 1333
 
1334 1334
 		sessions = (struct session *)cli_malloc(sizeof(struct session));
1335 1335
 		if((sessions[0].sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
... ...
@@ -1340,7 +1340,7 @@ main(int argc, char **argv)
1340 1340
 				cfgfile);
1341 1341
 			return EX_CONFIG;
1342 1342
 		}
1343
-		if(connect(sessions[0].sock, (struct sockaddr *)&sun, sizeof(struct sockaddr_un)) < 0) {
1343
+		if(connect(sessions[0].sock, (struct sockaddr *)&sockun, sizeof(struct sockaddr_un)) < 0) {
1344 1344
 			perror(localSocket);
1345 1345
 			return EX_UNAVAILABLE;
1346 1346
 		}