Switched back to the old style thread architecture in preparation for eventual migrat...
[citadel.git] / citadel / serv_extensions.c
index df80cc845424658f94cfc7c5d4f3d706824f8aaa..a94239573bb64c44585c768e16eae976a24510f2 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 1987-2011 by the citadel.org team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include "sysdep.h"
@@ -944,7 +944,7 @@ void PerformSessionHooks(int EventType)
        for (fcn = SessionHookTable; fcn != NULL; fcn = fcn->next) {
                if (fcn->eventtype == EventType) {
                        if (EventType == EVT_TIMER) {
-                               citthread_setspecific(MyConKey, NULL);  /* for every hook */
+                               pthread_setspecific(MyConKey, NULL);    /* for every hook */
                        }
                        (*fcn->h_function_pointer) ();
                }