[tin-dev] [PATCH] fix !NNTP_ABLE build

Urs Janßen urs at tin.org
Thu Aug 24 01:58:31 CEST 2023


=== modified file 'src/active.c'
--- old/src/active.c	2023-08-18 08:13:45 +0000
+++ new/src/active.c	2023-08-23 23:42:43 +0000
@@ -675,10 +675,10 @@
 		 */
 		active_add(grpptr, count, max, min, moderated);
 	}
-#	ifdef DEBUG
+#	if defined(DEBUG) && defined(NNTP_ABLE)
 	if ((debug & DEBUG_NNTP) && !verbose)
 		debug_print_file("NNTP", "<<<%s%s", logtime(), txt_log_data_hidden);
-#	endif /* DEBUG */
+#	endif /* DEBUG && NNTP_ABLE */
 
 	TIN_FCLOSE(fp);
 

=== modified file 'src/art.c'
--- old/src/art.c	2023-08-17 07:42:15 +0000
+++ new/src/art.c	2023-08-23 23:44:04 +0000
@@ -2291,11 +2291,11 @@
 
 		top_art++;				/* Basically this statement commits the article */
 	}
-#	ifdef DEBUG
+#	if defined(DEBUG) && defined(NNTP_ABLE)
 	/* log end of multiline response to get timing data */
 	if ((debug & DEBUG_NNTP) && !verbose)
 		debug_print_file("NNTP", "<<<%s%s", logtime(), txt_log_data_hidden);
-#	endif /* DEBUG */
+#	endif /* DEBUG && NNTP_ABLE*/
 
 	free(group_msg);
 	TIN_FCLOSE(fp);

=== modified file 'src/mail.c'
--- old/src/mail.c	2023-08-17 07:42:15 +0000
+++ new/src/mail.c	2023-08-23 23:51:15 +0000
@@ -532,10 +532,10 @@
 		if (++count % 100 == 0)
 			spin_cursor();
 	}
-#	ifdef DEBUG
+#	if defined(DEBUG) && defined(NNTP_ABLE)
 	if ((debug & DEBUG_NNTP) && !verbose)
 		debug_print_file("NNTP", "<<<%s%s", logtime(), txt_log_data_hidden);
-#	endif /* DEBUG */
+#	endif /* DEBUG && NNTP_ABLE */
 	FreeIfNeeded(groupname);
 }
 




More information about the tin-dev mailing list