From 1ad9a609ac3173b8a8b0402c4df9744fb805e053 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Wed, 15 Apr 1998 04:11:24 +0200
Subject: [PATCH] Not as paranoid anymore.

Rev: src/program.c:1.81
---
 src/program.c | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/src/program.c b/src/program.c
index cbb34db8e6..848fa9222b 100644
--- a/src/program.c
+++ b/src/program.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: program.c,v 1.80 1998/04/14 22:10:50 hubbe Exp $");
+RCSID("$Id: program.c,v 1.81 1998/04/15 02:11:24 grubba Exp $");
 #include "program.h"
 #include "object.h"
 #include "dynamic_buffer.h"
@@ -392,23 +392,6 @@ void fixate_program(void)
   new_program->flags |= PROGRAM_FIXED;
 }
 
-/*
- * Error handler.
- *
- * This function should not normally be called,
- * but is here for safety reasons.
- */
-void restore_threads_disabled(void *arg)
-{
-  fprintf(stderr, "restore_threads_disabled(): threads_disabled:%d, saved_threads_disabled:%d compilation_depth:%d\n", threads_disabled, (int)arg, compilation_depth);
-#ifdef DEBUG
-  fatal("restore_threads_disabled() called\n");
-#endif /* DEBUG */
-
-  threads_disabled = (int)arg;
-  co_signal(&threads_disabled_change);
-}
-
 /*
  * Start building a new program
  */
@@ -2068,7 +2051,7 @@ struct program *compile(struct pike_string *prog)
   }
 
 #ifdef DEBUG
-  if (threads_disabled != saved_threads_disabled+1) {
+  if (threads_disabled < saved_threads_disabled) {
     fatal("compile(): threads_disabled:%d saved_threads_disabled:%d\n",
 	  threads_disabled, saved_threads_disabled);
   }
-- 
GitLab