File pfqueue-fixes.patch of Package pfqueue

--- fe_ncurses.c.orig	2009-07-24 14:59:56.000000000 +0200
+++ fe_ncurses.c	2009-07-24 15:00:41.000000000 +0200
@@ -201,9 +201,9 @@
 		wattroff ( w, A_BOLD );
 		wrefresh ( w );
 		c = wgetch ( w );
-		if ( ht==help_text1 )
+		if ( strcmp(ht, help_text1) == 0 )
 			ht = help_text2;
-		else if ( ht == help_text2 )
+		else if ( strcmp(ht, help_text2) == 0 )
 			ht = help_be;
 		else
 			ht = help_text1;
--- fe_socket.c.orig	2009-07-24 11:11:10.000000000 +0200
+++ fe_socket.c	2009-07-24 14:59:50.000000000 +0200
@@ -51,8 +51,9 @@
 			VERSION );
 }
 
-int w_socket ( int s, const char* b ) {
-	write ( s, b, strlen(b) );
+void w_socket ( int s, const char* b ) {
+	int written;
+    write ( s, b, strlen(b) );
 	printf ( b );
 }
 
@@ -90,6 +91,8 @@
 	char cat_buf2[CAT_BUF_SIZE];
 	struct msg_t *msg;
 
+	msg = pfql_msg(pfql_ctx,id);
+
 	if ( !msg ) {
 		sprintf ( cat_buf2, "%s: NOMSG\n", CMD_ERROR );
 	} else {
@@ -399,6 +402,7 @@
 	cat_buf = (char*)malloc(CAT_BUF_SIZE);
 	if ( !cat_buf )
 		return 0;
+    return 1;
 }
 
 int main ( int argc, char** argv ) {
openSUSE Build Service is sponsored by