File suck-4.3.0-codecleanup.patch of Package suck

Index: batch.c
===================================================================
--- batch.c.orig	2010-04-22 13:49:30.820370821 +0200
+++ batch.c	2010-04-22 13:56:33.288369682 +0200
@@ -225,7 +225,7 @@ void do_lmovebatch(PMaster master) {
 	pid = fork();
 	if(pid == 0) {
 		/* in child */
-		execvp(args[0], args);
+		execvp(args[0], (char * const *)args);
 		MyPerror(batch_phrases[2]);	/* only get here on errors */
 		exit(-1); /* so we aren't running two sucks */
 	}
Index: both.c
===================================================================
--- both.c.orig	2010-04-22 13:49:30.820370821 +0200
+++ both.c	2010-04-22 13:57:03.456369887 +0200
@@ -167,7 +167,8 @@ int connect_to_nntphost(const char *host
 	struct sockaddr_in address;
 	char sport[10];
 	int sockfd = -1;
-	
+
+    memset(&saddr, '\0', sizeof(saddr));
 #ifdef HAVE_LIBSSL
 	SSL *ssl_struct = NULL;
 	SSL_CTX *test1 = NULL;
Index: db.h
===================================================================
--- db.h.orig	2010-04-22 13:49:30.820370821 +0200
+++ db.h	2010-04-22 13:50:22.640270404 +0200
@@ -9,4 +9,4 @@ int db_mark_dled(PMaster, PList);
 int db_open(PMaster);
 void db_close(PMaster);
 
-#endif _SUCK_DB_H
+#endif /* _SUCK_DB_H */
openSUSE Build Service is sponsored by